Development of Docs
Get a copy of the source files
- Make sure you have access. Contact admin (red@shakefx.com) for access. The link will open a mail client to send an email.
-
Clone or update the repository For the first time:
git clone git@bitbucket.org:softwarelab7/jawda-docs.gitIf you are updating the docs from other collaborators changes:
git pull -
Go to directory
cd jawda-docs -
Install dependencies
-
Install virtualenv for project. You only have to do this once.
-
Install virtualenvwrapper
sudo apt-get install virtualenvwrapper -
Open new terminal so that your terminal will know of virtualenvwrapper.
-
Create virtualenv for project.
mkvirtualenv jawda-docs
-
-
Install docs Dependencies. You only have to do this when someone changes requirements.txt file.
pip install -r requirements.txt
-
-
Run the docs
-
Initialize work env
workon jawda-docs -
Run local server.
mkdocs serve -
Go to http://localhost:8000/ to check your local copy of the docs.
-
-
Make changes.
-
Checkout a branch with same name of version you want to update the docs for:
git checkout -b <version> || git checkout <version> -
Update from collaborators.
-
Fetch Changes from latest master.
git fetch origin -
Merge changes to current branch
git merge --no-ff origin/master
-
-
Refresh the local copy of your docs while making changes to see them. Please check out this tutorial for markdown that I saw randomly on the internet that looks good: http://markdowntutorial.com/.
-
-
Once done:
-
Use git to commit changes using
git gui. If the command line complains, install viasudo apt-get install git-gui -
Push to repository.
git pull origin refs/heads/<version>:refs/heads/<version>git push origin refs/heads/<version>:refs/heads/<version> -
Make sure the version is active at https://readthedocs.org/projects/jawdaandjawda/versions/. Create an account if you haven't already and then contact admin (red@shakefx.com) for access.
-
Wait for readthedocs to build latest or manually build using the form. and check at http://jawdaandjawda.readthedocs.org/en/latest/ to see published chnages. You can select the version from latest page.
-
-
Release to public:
-
Checkout master.
git fetch origingit checkout mastergit pull -
Merge versions released:
git merge --no-ff origin/<version> -
Push latest master
git push origin master -
Create tag for same version of the site
git tag -f -a <version> -m 'description of version' -
Release latest changes.
git push -f origin refs/tags/<version>:refs/tags/<version> -
Wait for readthedocs to build latest or manually build using the form. and check at http://jawdaandjawda.readthedocs.org/en/latest/ to see published chnages.
-
Docs Framework
For full documentation visit mkdocs.org.
Commands
mkdocs new [dir-name]- Create a new project.mkdocs serve- Start the live-reloading docs server.mkdocs build- Build the documentation site.mkdocs help- Print this help message.
Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.