Skip to content

Commit e9c7290

Browse files
authored
DOC: Fix related to PDF assets (#4486)
2 parents 2782c3e + 8b491c8 commit e9c7290

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: .github/workflows/build_documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
run: |
108108
zip -r documentation-html.zip ./doc/_build/html
109109
mv documentation-html.zip ./doc/_build/html/_static/assets/download/
110-
cp doc/_build/latex/PyAEDT-Documentation-*.pdf ./doc/_build/html/_static/assets/download/documentation.pdf
110+
cp doc/_build/latex/PyAEDT-Documentation-*.pdf ./doc/_build/html/_static/assets/download/pyaedt.pdf
111111
112112
- name: Upload documentation PDF artifact
113113
uses: actions/upload-artifact@v4

Diff for: doc/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ phtml-no-examples:
3737
pdf:
3838
@$(SPHINXBUILD) -M latex "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3939
cd $(BUILDDIR)/latex && latexmk -r latexmkrc -pdf *.tex -interaction=nonstopmode || true
40-
(test -f $(BUILDDIR)/latex/pyaedt.pdf && echo pdf exists) || exit 1
40+
(test -f $(BUILDDIR)/latex/PyAEDT-Documentation-*.pdf && echo pdf exists) || exit 1
4141

4242
pdf-no-examples:
4343
export PYAEDT_SKIP_EXAMPLE="1"

Diff for: doc/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ def setup(app):
344344
},
345345
{
346346
"name": "Download documentation in PDF",
347+
# NOTE: Changes to this URL must be reflected in CICD documentation build
347348
"url": f"https://{cname}/version/{switcher_version}/_static/assets/download/pyaedt.pdf",
348349
# noqa: E501
349350
"icon": "fa fa-file-pdf fa-fw",

0 commit comments

Comments
 (0)