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 8957279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:57:09+00:00 2026-06-15T14:57:09+00:00

How I can define in Sphinx which .rst files and directories should be used?

  • 0

How I can define in Sphinx which .rst files and directories should be used?

I want to include an automatic documentation generator in my testing/building/documentation script.
sphinx-quickstart was executed in my workspace and created an index.rst-file. As Sphinx uses restructured text files for documentation I navigated through the workspace and create them manually with sphinx-autogen. It resulted into the tasks.rst file (see below).

When I use ‘make html’ I get several warnings:

WARNING: invalid signature for automodule (u’tasks/add_to_config’)

WARNING: autodoc can’t import/find module ‘tasks.add_to_config’, it reported error: "No module named wl_build.tasks", please check your spelling and sys.path

WARNING: don’t know which module to import for autodocumenting u’tasks/add_to_config’ (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)

…

My index.rst

Welcome to build's documentation!
====================================

Contents:

.. toctree::
   :maxdepth: 2

.. automodule:: tasks/add_to_config
   :members:

.. automodule:: tasks/build_egg
   :members:   

tasks.rst

tasks Package
=============

:mod:`tasks` Package
--------------------

.. automodule:: tasks.__init__
    :members:
    :undoc-members:
    :show-inheritance:

:mod:`add_to_config` Module
---------------------------

.. automodule:: tasks.add_to_config
    :members:
    :undoc-members:
    :show-inheritance:

:mod:`build_egg` Module
-----------------------

.. automodule:: tasks.build_egg
    :members:
    :undoc-members:
    :show-inheritance:
  • 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-06-15T14:57:10+00:00Added an answer on June 15, 2026 at 2:57 pm

    Try replacing the / characters in your index.rst file with periods (.)

    like this:

    Welcome to build's documentation!
    ====================================
    
    Contents:
    
    .. toctree::
       :maxdepth: 2
    
    .. automodule:: tasks.add_to_config
       :members:
    
    .. automodule:: tasks.build_egg
       :members:  
    

    See if that helps.

    If Sphinx still can’t find the code to document, then you’ll probably need to modify your PYTHONPATH or alter sys.path in your conf.py file in order to help Sphinx find what it’s looking for.

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

Sidebar

Related Questions

In HTML/CSS you can define a style which can be applied to many types
In c\c++ can define: #ifndef <token> /* code */ #else /* code to include
Can't I define a variable to be used in different envs when I define
C++ programs can define and set a new_handler() that should be called from memory
I can define @some_ivar outside a class. To which class does this ivar belong
I can define constants in file and then include them, or I can store
In HTML you can define in a form an input-field for uploading files. This
I can define default value in domain by this way : class ProcessingPriority {
I can define church numerals fairly easy using scheme: > (define f (lambda (x)
I know I can define default parameters in python, but can I do so

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.