-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6197 from PrimozGodec/sphinx-multiproject
Doc - use sphinx-multiproject for RTD subprojects
- Loading branch information
Showing
8 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.10" | ||
|
||
sphinx: | ||
# Path to the shared conf.py file. | ||
configuration: doc/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: requirements-readthedocs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
""" | ||
This configuration use sphinx-multiproject which builds multiple | ||
Sphinx projects for the Read the Docs. We publish each project at read-the-docs | ||
as orange3 RTD project's subproject. This config file is only required for the | ||
Read the Docs build. Each documentation project can still be built separately | ||
with sphinx-build (make html). | ||
To select a documentation project that the RTD will build, set the PROJECT | ||
environment variable in RTD subprojects to the documentation project name | ||
(e.g. PROJECT=data-mining-library) | ||
To test the documentation build locally run (from doc directory): | ||
``` | ||
PROJECT="<project name>" sphinx-build . ./_build | ||
``` | ||
More about shpinx-multiproject: | ||
https://sphinx-multiproject.readthedocs.io/en/latest/index.html | ||
""" | ||
|
||
# pylint: disable=duplicate-code | ||
extensions = [ | ||
"multiproject", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.doctest", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.todo", | ||
"sphinx.ext.coverage", | ||
"sphinx.ext.mathjax", | ||
"sphinx.ext.ifconfig", | ||
"sphinx.ext.viewcode", | ||
"sphinx.ext.autosummary", | ||
"sphinx.ext.napoleon", | ||
"recommonmark", | ||
] | ||
|
||
# Define the projects that will share this configuration file. | ||
multiproject_projects = { | ||
"data-mining-library": { | ||
"path": "data-mining-library/source/" | ||
}, | ||
"development": { | ||
"path": "development/source/" | ||
}, | ||
"visual-programming": { | ||
"path": "visual-programming/source/" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
docutils<0.17 | ||
Sphinx>=4.2.0 | ||
recommonmark | ||
sphinx-multiproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters