GithubHelp home page GithubHelp logo

markhoeber / sublime_sphinx_guide Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 155.0 445 KB

Sublime and Sphinx Guide

Home Page: http://sublime-and-sphinx-guide.readthedocs.io/en/latest/index.html

Makefile 21.77% Python 69.16% CSS 4.13% HTML 4.94%

sublime_sphinx_guide's Introduction

RST, Sphinx, Sublime, and GitHub

This repository contains documentation for using RST, Sphinx, Sublime, and GitHub to build documentation.

Contributions are more than welcome.

sublime_sphinx_guide's People

Contributors

cr-markhoeber avatar markhoeber avatar neroburner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sublime_sphinx_guide's Issues

How to generate different TOCs for subdirectories within the same project in Sphinx

Following the instructions about conditional text in Sphinx, I created three different build subdirectories in one project to generate three custom contents from the same source (e.g. source-file -> output1 for users, output2 for admins, output3 for developers).

I'm currently stuck on how to generate three different TOCs for each subdirectory within my project.
In the current scenario, the build command generates a single TOC for all three subdirectories and overwrites the former TOC.

My project consists of a single source directory and three different build directories. My tree structure looks like this:

C:.
|   make.bat
|   Makefile   
+---adminbuild    # Build directory for admins        
+---build         # Build directory for users
+---devbuild      # Build directory for developers
+---env           
\---source
    |	conf.py
    |	contents.rst
    +---pics
    +---_static
    \---_templates
            index.html
            layout.html

As you can see, I have a custom landing page in the _templates folder (i.e., index.html), and a Jinja template (layout.html) extending my default layout.

Here's an extract of my conf.py:

# The master toctree document. Tell Sphinx about the location of our table of contents.
root_doc = 'contents'

# Tell Sphinx that we still want to generate the index page, but with a custom template.
html_additional_pages = {'index': 'index.html'}

Is there a possibility to set multiple values for the root_doc and specify each path within the corresponding subdirectory, or any other workaround to achieve this?

Thank you for your help!

Builder name **** not registered or available through entry point

Are the changes to Makefile still valid?
Because I think Sphinx changed his Makefile.

To me Add link/Test links, Internalhtml and Livehtml don't work:

>>> make link
Running Sphinx v5.0.2

Sphinx error:
Builder name link not registered or available through entry point

Also I use Windows10 and I have make.bat, you don't. Should I change something there?

Or maybe in conf.py?

Here more details or you can ask me because I'm not sure what can be useful.

Thank you

Btw, good guide!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.