python-startkladde
  • Executables of the python startkladde
  • Python Scripts
    • sk.py
      • help
        • Synopsis
      • import-flights
        • Synopsis
      • stats
        • Synopsis
      • Synopsis
      • Display statistics
      • Set Email Adress for Pilots
  • Bash Scripts
    • startkladde_backup.bsh
      • Functionality
      • Synopsis
    • startkladde_restore.bsh
      • Synchronisation of the Startkladde Database with a Webserver
        • Overview
        • Master Configuration
        • Server Configuration
        • Backup Process
    • startkladde_sync_master.bsh
      • Requirements
      • Synopsis
  • The pysk package
    • The db package
      • Database Model
        • Tables
      • Database Class
        • Interface
      • Table Class
      • Column Class
        • Interface
      • CSV Reader Class
        • Expected Format
        • Interface
      • Conflict Handler
        • Interface
        • Constants
    • Tools package
      • Tool Base Class
    • Utils package
      • ASCII Replacements
  • GitHub Related Information
    • Software Development
      • Getting the source code
      • Workflow
    • Publishing Documentation with GitHub Project Pages
      • Setting Up the Branch
      • Disabling Jekyll
      • Creating and Publishing Documentation
 
python-startkladde
  • Docs »
  • GitHub Related Information
  • View page source

GitHub Related Information¶

Python Startkladde is hosted on GitHub and the Sphinx generated html documentation is published on GitHub Project Pages.

The following sections describe how to set up the documentation and how to clone and push to the repository.

Software Development¶

Getting the source code¶

The source code can be checked out using

git clone git@github.com:claashk/python-startkladde.git

if ssh credentials for user claashk are available or via https with

git clone https://github.com/claashk/python-startkladde.git

Workflow¶

Bug reports, feature requests and other issues should be reported in the GitHub Issue Tracker.

Contributers are encouraged to use the fork & pull development strategie based on pull requests.

Publishing Documentation with GitHub Project Pages¶

GitHub allows to upload html documentation in a separate branch called gh-pages. The html documentation is then available at http://claashk.github.io/python-startkladde.

Setting Up the Branch¶

Setting up the branch follows the GitHub documentation. To initalize the gh-pages branch with the automatically created documentation created by Sphinx in the doc/build/html, it is required to clone the entire repository into this directory:

cd doc/build/
git clone git@github.com:claashk/python-startkladde.git html
cd html
git checkout --orphan gh-pages
git rm -rf .

This creates an orphan gh-pages branch without any content.

Disabling Jekyll¶

Additionally the Jekyll Tool installed on GitHub has to be disabled, to avoid that files and directories starting with an underscore are ignored. This can be achieved by simply adding a file called ./doc/build/html/.nojekyll to the base directory of the new branch:

touch .nojekyll
git add .nojekyll

Creating and Publishing Documentation¶

The documentation can be created as usual by calling

make html

in ./doc.

To publish the such created documentation on GitHub, the gh-pages branch has to be commited and pushed to GitHub

cd doc/build/html
git add *
git commit -a -m "Uploaded current documentation to GitHub"
git push github gh-pages
Previous

© Copyright 2015, Claas H. Köhler.

Built with Sphinx using a theme provided by Read the Docs.