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

DOCS: Add download PDF button for release #4644

Merged
merged 1 commit into from
May 7, 2024
Merged
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
21 changes: 10 additions & 11 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,16 @@ def setup(app):
},
}

# Only add button to download PDF in dev mode as the building PDF for the full documentation is too long
if switcher_version == "dev":
html_theme_options["icon_links"].append(
{
"name": "Download documentation in PDF",
# NOTE: Changes to this URL must be reflected in CICD documentation build
"url": f"https://{cname}/version/{switcher_version}/_static/assets/download/pyaedt.pdf",
# noqa: E501
"icon": "fa fa-file-pdf fa-fw",
}
)
# Add button to download PDF
html_theme_options["icon_links"].append(
{
"name": "Download documentation in PDF",
# NOTE: Changes to this URL must be reflected in CICD documentation build
"url": f"https://{cname}/version/{switcher_version}/_static/assets/download/pyaedt.pdf",
# noqa: E501
"icon": "fa fa-file-pdf fa-fw",
}
)

html_static_path = ["_static"]

Expand Down
Loading