Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6063879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:13:04+00:00 2026-05-23T09:13:04+00:00

We have a multi-module project documented with the (excellent) Sphinx. Our setup is not

  • 0

We have a multi-module project documented with the (excellent) Sphinx. Our setup is not unlike one described on the mailing list. Overall this works great! But we have a few questions about doing so:

  1. The submodule tables of contents will include index links. At best these will link to the wrong indices. (At worst this seems to trigger a bug in Sphinx, but I’m using the devel version so that’s reasonable). Is there a way of generating the index links only for the topmost toctree?

  2. Are there best practices for keeping the Sphinx configuration in sync between multiple projects? I could imagine hacking something together around from common_config import *, but curious about other approaches.

  3. While we’re at it, the question raised in the mailing list post (alternative to symlinking subproject docs?) was never answered. It’s not important to me, but it may be important to other readers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:13:04+00:00Added an answer on May 23, 2026 at 9:13 am
    1. I’m not sure what you mean by this. Your project’s index appears to be just fine. Could you clarify on this, please?
    2. As far as I’ve seen, from common_config import * is the best approach for keeping configuration in sync.
    3. I think the best way to do this is something like the following directory structure:

      main-project/
       conf.py
       documentation.rst
      
       sub-project-1/
          conf.py - imports from main-project/conf.py
          documentation.rst
      
       sub-project-2/
          conf.py - likewise, imports from main-project/conf.py
          documentation.rst
      

      Then, to just package sub-project-1 or sub-project-2, use this UNIX command:

      sphinx-build main-project/ <output directory> <paths to sub-project docs you want to add>
      

      That way, not only will the main project’s documentation get built, the sub-project documentation you want to add will be added as well.

      To package main-project:

      sphinx-build main-project/ <output directory>
      

      I’m pretty sure this scheme will work, but I’ve yet to test it out myself.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have a multi-module project consisting of 5 different modules. One of the
I have a multi module Maven project, one of its modules has the main
I have multi module project where one project contains excel spreadsheet and it is
I have a multi-module maven project with an installer sub-project. The installer will be
I have a multi-module project and I want to deploy on the project's site
I have a multi-module project and I would like to define a single filter
I have the multi module project this is the parent pom. <?xml version=1.0 encoding=UTF-8?>
I have a multi-module project. parent POM (1.0-SNAPSHOT) |-- module1 (1.0-SNAPSHOT) |-- module2 (1.0-SNAPSHOT)
I have some multi-module project. Some modules are packaged as wars and some as
I have a multi-module project. I thought I can compile only a single module

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.