Skip to content

Commit

Permalink
Merge pull request #6496 from wazuh/4.5.3-fix-redoc-pages
Browse files Browse the repository at this point in the history
[4.5.3] Fixed an error on the API reference pages
  • Loading branch information
s-ocando authored Sep 18, 2023
2 parents 34bd031 + 688f1f3 commit c73511c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
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

0 comments on commit c73511c

Please sign in to comment.