Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.5.3] Fixed an error on the API reference pages #6496

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# docker build -t sphinx-autobuild .
# docker run -it -p 8000:8000 --rm -v "$(pwd)/source":/home/python/docs sphinx-autobuild

FROM python:3.7-alpine
FROM python:3.8-alpine

COPY --chown=1000:1000 requirements.txt ./

Expand Down
1 change: 1 addition & 0 deletions source/_themes/wazuh_doc_theme_v3/config/uglifyjs-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const pageSpecificJS = {
],
"api-reference": [
SRC_PATH + "components/version-selector.js",
SRC_PATH + "components/doctools.js",
SRC_PATH + "components/sphinx-search/sphinx_highlight.js",
SRC_PATH + "custom-redoc.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ main {
background-image: url("#{$ico-path}index-icons.svg#compliance-lt");
}


/* Learning Wazuh */
[href$="learning-wazuh/index.html"]::before,
[data-href$="learning-wazuh/index.html"]::before {
Expand Down

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ def get_js_by_page(pagename):
# lightbox (extension)
]

if version < '4.0':
js_map['user-manual/api/reference'] = default

if html_theme_options['breadcrumb_root_title'] == 'Training':
js_map['index'] = default

Expand Down