|
1 | 1 | # pylint: disable=invalid-name |
2 | 2 | """ |
3 | | -xblocks-contrib documentation build configuration file. |
| 3 | +xblocks-core documentation build configuration file. |
4 | 4 |
|
5 | 5 | This file is execfile()d with the current directory set to its |
6 | 6 | containing dir. |
@@ -54,7 +54,7 @@ def get_version(*file_paths): |
54 | 54 | REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
55 | 55 | sys.path.append(REPO_ROOT) |
56 | 56 |
|
57 | | -VERSION = get_version("../xblocks_contrib", "__init__.py") |
| 57 | +VERSION = get_version("../src/xblocks_core", "__init__.py") |
58 | 58 |
|
59 | 59 | # If extensions (or modules to document with autodoc) are in another directory, |
60 | 60 | # add these directories to sys.path here. If the directory is relative to the |
@@ -103,17 +103,17 @@ def get_version(*file_paths): |
103 | 103 | top_level_doc = "index" |
104 | 104 |
|
105 | 105 | # General information about the project. |
106 | | -project = "xblocks-contrib" |
| 106 | +project = "xblocks-core" |
107 | 107 | copyright = f"{datetime.now().year}, Axim Collaborative, Inc." # pylint: disable=redefined-builtin |
108 | 108 | author = "Axim Collaborative, Inc." |
109 | | -project_title = "xblocks-contrib" |
| 109 | +project_title = "xblocks-core" |
110 | 110 | documentation_title = f"{project_title}" |
111 | 111 |
|
112 | 112 | # Set display_github to False if you don't want "edit on Github" button |
113 | 113 | html_context = { |
114 | 114 | "display_github": True, # Integrate GitHub |
115 | 115 | "github_user": "edx", # Username |
116 | | - "github_repo": "xblocks-contrib", # Repo name |
| 116 | + "github_repo": "xblocks-core", # Repo name |
117 | 117 | "github_version": "main", # Version |
118 | 118 | "conf_py_path": "/docs/", # Path in the checkout to the docs root |
119 | 119 | } |
@@ -198,7 +198,7 @@ def get_version(*file_paths): |
198 | 198 | # documentation. |
199 | 199 | # |
200 | 200 | html_theme_options = { |
201 | | - "repository_url": "https://github.com/openedx/xblocks-contrib", |
| 201 | + "repository_url": "https://github.com/openedx/xblocks-core", |
202 | 202 | "repository_branch": "main", |
203 | 203 | "path_to_docs": "docs/", |
204 | 204 | "home_page_in_toc": True, |
@@ -235,7 +235,7 @@ def get_version(*file_paths): |
235 | 235 | # The name for this set of Sphinx documents. |
236 | 236 | # "<project> v<release> documentation" by default. |
237 | 237 | # |
238 | | -# html_title = 'xblocks-contrib v0.1.0' |
| 238 | +# html_title = 'xblocks-core v0.1.0' |
239 | 239 |
|
240 | 240 | # A shorter title for the navigation bar. Default is the same as html_title. |
241 | 241 | # |
@@ -551,8 +551,7 @@ def on_init(app): # pylint: disable=unused-argument |
551 | 551 | apidoc_path, |
552 | 552 | "-o", |
553 | 553 | docs_path, |
554 | | - os.path.join(root_path, "xblocks_contrib"), |
555 | | - os.path.join(root_path, "xblocks_contrib/migrations"), |
| 554 | + os.path.join(root_path, "src"), |
556 | 555 | ] |
557 | 556 | ) |
558 | 557 |
|
|
0 commit comments