Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Documentation

    sphinxtogithub 1.0.0

    Download button

    No screenshots available
    Downloads: 263  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Jones | More programs
    BSD License / FREE
    November 10th, 2010, 16:58 GMT
    ROOT / Documentation

     Read user reviews (0)  Refer to a friend  Subscribe

    sphinxtogithub description

    Script to prepare Sphinx HTML output for github pages

    sphinxtogithub is a Python script for preparing the HTML output of the Sphinx documentation system for github pages.

    It renames any top level folders which start with an underscore and edits any references to them within the html files.

    Why?

    GitHub processes the incoming html with Jekyll which believes top level folders starting with an underscore are special and does not let their content be accessible to the server. This is incompatible with Sphinx which uses underscores at the start of folder names for static content.

    Usage

    The sphinxtogithub.py script can be run on the command line or used as a Sphinx extension.

    Extension

    Place the script on the PYTHONPATH and add sphinxtogithub to the extensions list in the conf.py file in your Sphinx project:

    extensions = [ "sphinxtogithub" ]

    Additionally there are two config variables you can use to control the extension. The first enables/disables the extension and the second enables verbose output. They are True by default:

    sphinx_to_github = True
    sphinx_to_github_verbose = True


    Command Line

    Run the script with the path to the html output directory as the first argument. There is a --verbose flag for basic output.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    github pages | Sphinx documentation | Sphinx | github | pages

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM