diff --git a/doc/source/conf.py b/doc/source/conf.py index 8656edc17e..fa8399d4e0 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -181,6 +181,8 @@ rst_epilog += f.read() rst_epilog = rst_epilog.replace("%%VERSION%%", "v231") +rst_epilog = rst_epilog.replace("%%PYMAPDLVERSION%%", release) + # Read link all substitutions from file with open("substitutions.rst") as f: diff --git a/doc/source/index.rst b/doc/source/index.rst index e6186ff38b..ee351a6892 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -166,6 +166,8 @@ Documentation and issues ------------------------ Documentation for the latest stable release of PyMAPDL is hosted at `PyMAPDL documentation `_. +The same documentation is also `available as PDF `_ in the `Assets` section in the +`latest Github package release `_. In the upper right corner of the documentation's title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the diff --git a/doc/source/links.rst b/doc/source/links.rst index 984799e0de..a4a445b702 100644 --- a/doc/source/links.rst +++ b/doc/source/links.rst @@ -148,6 +148,9 @@ .. _pymapdl_discussion_differences_mapdl_pymapdl: https://github.com/ansys/pymapdl-reader/issues/185 .. _cartpole_example_notebook: https://cartpole.mapdl.docs.pyansys.com/ml-rl-notebook.html .. _wsl_launching_mapdl: https://github.com/ansys/pymapdl/issues/2315 +.. _pymapdl_latest_github_release: https://github.com/ansys/pymapdl/releases/latest +.. _pymapdl_latest_pdf_doc: https://github.com/ansys/pymapdl/releases/download/v%%PYMAPDLVERSION%%.0/pymapdl-Documentation-%%PYMAPDLVERSION%%.0.pdf + .. #Python .. _using_venv: https://docs.python.org/3/library/venv.html