Skip to content

Commit

Permalink
doc: update landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Jul 2, 2024
1 parent a097dde commit 8d18b1b
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 13 deletions.
4 changes: 0 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
.. _ref_readme:

##########
PyAdditive
##########

.. readme_start
|pyansys| |python| |pypi| |GH-CI| |codecov| |MIT| |black|

.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
Expand Down
7 changes: 7 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"_build",
"Thumbs.db",
".DS_Store",
"links.rst",
]

# numpydoc configuration
Expand Down Expand Up @@ -185,6 +186,12 @@
# The master toctree document.
master_doc = "index"

# Common content for every RST file such us links
rst_epilog = ""
links_filepath = Path(__file__).parent.absolute() / "links.rst"
with open(links_filepath) as links_file:
rst_epilog += links_file.read()

# The suffix(es) of source filenames.
source_suffix = {
".rst": "restructuredtext",
Expand Down
56 changes: 47 additions & 9 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
..
Just reuse the root readme to avoid duplicating the documentation.
Provide any documentation specific to your online documentation
here.
PyAdditive documentation |version|
===================================
###################################

PyAdditive provides a Python API to interact with `Ansys Additive`_.


.. grid:: 2

.. grid-item-card:: Getting started :fa:`person-running`
:link: getting-started
:link-type: doc

Step-by-step guidelines on how to set up your environment to work with
PyAdditive.

.. include:: ../../README.rst
:start-after: .. readme_start
.. grid-item-card:: User guide :fa:`book-open-reader`
:link: user-guide
:link-type: doc

Learn about the capabilities, features, and key topics in PyAdditive.
This guide provides useful background information and explanations.

.. jinja:: main_toctree

{% if build_api or build_examples %}
.. grid:: 2

{% if build_api %}
.. grid-item-card:: API reference :fa:`book-bookmark`
:link: api/index
:link-type: doc

A detailed guide describing the PyAdditive API. This guide documents
all the methods and properties for each interface, class, and
enumerations of each PyAdditive module.
{% endif %}

{% if build_examples %}
.. grid-item-card:: Gallery of examples :fa:`laptop-code`
:link: examples/gallery_examples/index
:link-type: doc

Learn how to use PyAdditive for creating custom applications and
automating your existing Additive workflows. This guide contains a
gallery of examples showing how to integrate PyAdditive with other
popular tools in the Python ecosystem.
{% endif %}
{% endif %}

.. jinja:: main_toctree

Expand All @@ -22,4 +60,4 @@ PyAdditive documentation |version|
{% if build_examples %}
examples/gallery_examples/index
{% endif %}
contributing
contributing
7 changes: 7 additions & 0 deletions doc/source/links.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. PyAdditive Repository Links
.. _PyAdditive repository: https://github.com/ansys/pyadditive

.. Ansys products
.. _Ansys Additive: https://www.ansys.com/products/additive

0 comments on commit 8d18b1b

Please sign in to comment.