- Open a terminal
- If you do not have homebrew installed, install homebrew
- Change to the folder where you have the
dsx-docs
repo cloned You can do this by opening the folder in Finder and dragging it onto the Terminal icon in the dock. - From inside the dsx-docs folder runt the setup command
Once it completes you should see a message stating that setup is complete.
make macos_setup
Continue to "Editing the docs" section
# install python and virtenv wrapper
apt install python3 virtualenvwrapper
# add virtenv wrapper config to bashrc
# if you use another shell, modify accordingly
echo 'source /usr/share/virtualenvwrapper/virtualenvwrapper.sh' >> ~/.bashrc
# source bashrc to pickup changes
source ~/.bashrc
# create the virtualenv
mkvirtualenv --python=/usr/bin/python3 -r requirements.txt dsx-docs
Continue to "Editing the docs" section
- Change to the folder where you have the
dsx-docs
repo cloned You can do this by opening the folder in Finder and dragging it onto the Terminal icon in the dock. - Start a local http server to view your changes to the documentation live
make serve
- Open your browser to: http://127.0.0.1:8000/
Start a local http server to view your changes to the documentation live
mkdocs serve
Open your browser to: http://127.0.0.1:8000/
When you are ready to publish the docs:
- Add and commit all changes to the git repo
- If you are not on the master branch, then merge your commits into master
- Run
make deploy
View the docs at docs.dsx.us
Copyright © 2019 Digital Security Exchange.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.