Skip to content

Commit

Permalink
feat: doc getting started user guide email
Browse files Browse the repository at this point in the history
  • Loading branch information
acarvalh-work committed Jul 20, 2023
1 parent 357d39f commit 2c3c870
Show file tree
Hide file tree
Showing 13 changed files with 106 additions and 4 deletions.
10 changes: 10 additions & 0 deletions doc/source/examples/basic-usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _ref_basic-usage::

===========
Basic Usage

Check warning on line 4 in doc/source/examples/basic-usage.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] doc/source/examples/basic-usage.rst#L4

[Google.Headings] 'Basic Usage' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'Basic Usage' should use sentence-style capitalization.", "location": {"path": "doc/source/examples/basic-usage.rst", "range": {"start": {"line": 4, "column": 1}}}, "severity": "WARNING"}
===========

.. automodule:: examples.basic-usage
:members:
:show-inheritance:
:undoc-members:
13 changes: 13 additions & 0 deletions doc/source/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. _examples:

========
Examples
========
End-to-end examples show how you can use PyUnits. If the PyUnits ``ansys-units`` package is installed on your machine,
you can download these examples as Python files or Jupyter notebooks and run them locally.

.. toctree::
:hidden:
:maxdepth: 2

basic-usage
2 changes: 1 addition & 1 deletion doc/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. installation:
.. _installation:

============
Installation
Expand Down
5 changes: 5 additions & 0 deletions doc/source/user_guide/config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. _ref_config:

===========
Config YAML

Check failure on line 4 in doc/source/user_guide/config.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] doc/source/user_guide/config.rst#L4

[Vale.Spelling] Did you really mean 'Config'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'Config'?", "location": {"path": "doc/source/user_guide/config.rst", "range": {"start": {"line": 4, "column": 1}}}, "severity": "ERROR"}
===========
11 changes: 11 additions & 0 deletions doc/source/user_guide/dimensions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _ref_dimensions:

==========
Dimensions
==========

.. automodule:: ansys.units.dimensions
:members:
:show-inheritance:
:undoc-members:
:exclude-members: __weakref__, __dict__, __init__, DimensionsError
11 changes: 11 additions & 0 deletions doc/source/user_guide/map.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _ref_map:

============
Quantity Map

Check warning on line 4 in doc/source/user_guide/map.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] doc/source/user_guide/map.rst#L4

[Google.Headings] 'Quantity Map' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'Quantity Map' should use sentence-style capitalization.", "location": {"path": "doc/source/user_guide/map.rst", "range": {"start": {"line": 4, "column": 1}}}, "severity": "WARNING"}
============

.. automodule:: ansys.units.map
:members:
:show-inheritance:
:undoc-members:
:exclude-members: __weakref__, __dict__, __init__, QuantityMapError
11 changes: 11 additions & 0 deletions doc/source/user_guide/quantity.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _ref_quantity:

========
Quantity
========

.. automodule:: ansys.units.quantity
:members:
:show-inheritance:
:undoc-members:
:exclude-members: __weakref__, __dict__, __init__, QuantityError
11 changes: 11 additions & 0 deletions doc/source/user_guide/systems.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _ref_systems:

============
Unit Systems

Check warning on line 4 in doc/source/user_guide/systems.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] doc/source/user_guide/systems.rst#L4

[Google.Headings] 'Unit Systems' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'Unit Systems' should use sentence-style capitalization.", "location": {"path": "doc/source/user_guide/systems.rst", "range": {"start": {"line": 4, "column": 1}}}, "severity": "WARNING"}
============

.. automodule:: ansys.units.systems
:members:
:show-inheritance:
:undoc-members:
:exclude-members: __weakref__, __dict__, __init__, UnitSystemError
11 changes: 11 additions & 0 deletions doc/source/user_guide/tables.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _ref_tables:

======
Tables
======

.. automodule:: ansys.units.tables
:members:
:show-inheritance:
:undoc-members:
:exclude-members: __weakref__, __dict__, __init__
7 changes: 7 additions & 0 deletions examples/00-Units/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PyUnits Examples
================
PyUnits provides a pythonic interface for units, unit systems, and unit conversions.
Its features enable seamless setup and usage of physical quantities. This includes
creating quantities, accessing different quantity properties, performing arithmetic
operations, performing unit conversions, creating unit systems, applying unit systems
to quantities.
1 change: 0 additions & 1 deletion examples/README.md

This file was deleted.

13 changes: 13 additions & 0 deletions examples/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. _ref_example_gallery:

========
Examples
========
End-to-end examples show how you can use PyUnits. If the PyFluent ``ansys-units`` package is installed on your machine,
you can download these examples as Python files or Jupyter notebooks and run them locally.

.. toctree::
:maxdepth: 1
:hidden:

.. 00-fluent/README.rst
4 changes: 2 additions & 2 deletions src/ansys/units/quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

class Quantity(float):
"""Quantity instantiates physical quantities using their real values and units. All
the instances of this class are converted to base SI units system to have
consistency in arithmetic operations.
instances of this class are converted to base SI units to have consistency in
arithmetic operations.
Parameters
----------
Expand Down

0 comments on commit 2c3c870

Please sign in to comment.