Skip to content

Commit 7527204

Browse files
Update Documentation (#354)
1 parent e6d1d1c commit 7527204

File tree

5 files changed

+49
-19
lines changed

5 files changed

+49
-19
lines changed

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Updated design doc (Added known Issues)
1616
* Updated migration progress table
1717
* Updated the FAQ with an entry about the ``isort`` compatibility issue
18+
* [#351](https://github.com/exasol/python-toolbox/issues/351), [#352](https://github.com/exasol/python-toolbox/issues/352): updated user guide
1819

1920
## 🔧 Changed
2021
* Updated `actions/upload-artifacts` version to `4.6.0`

doc/user_guide/features.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Features
2+
========
3+
4+
Uniform Project Layout
5+
----------------------
6+
7+
PTB expects a default project layout following "convention over configuration" when possible and reasonable.
8+
See the cookie-cutter project template for details, which is part of the python-toolbox workspace and can be found in directory `project-template`.
9+
You can also generate a project from the template to explore the default structure.
10+
For more details on this, please check out section `"getting started" <getting_started.html>`_ section.
11+
12+
Nox
13+
---
14+
15+
The most central tool when interacting with the toolbox is :code:`nox`, which is the task runner used across all of Exasol's Python-based projects.
16+
The toolbox itself provides various standard tasks and a plugin mechanism to extend these tasks if needed. For more information regarding nox, please visit the `nox homepage <http://nox.thea.codes/en/stable/>`_.
17+
18+
Central files in regards to nox and the toolbox are:
19+
20+
- noxfile.py: Standard nox configuration/setup file
21+
- noxconfig.py: Exasol-specific file containing additional information needed by the standard tasks of the toolbox
22+
23+
Important Nox Commands
24+
^^^^^^^^^^^^^^^^^^^^^^
25+
26+
* :code:`nox -l` shows a list of all available nox tasks
27+
* :code:`nox -s <tasks>` run the specified task(s)
28+
* :code:`nox -s test:typing` runs the type checker on the project
29+
* :code:`nox -s docs:clean docs:build docs:open`
30+
#. first task removes the documentation folder
31+
#. second one builds the documentation
32+
#. last one opens the documentation in the web browser
33+
* :code:`nox` without :code:`-s` runs the default task which is
34+
* :code:`nox -s project:fix` this command runs automated fixes on the code

doc/user_guide/how_to_release.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
How to Release?
2+
===============
3+
4+
#. Use :code:`nox -s release:prepare` to prepare the project for a new release.
5+
#. Merge your **Pull Request** to the **default branch**
6+
#. Use :code:`git remote show origin | sed -n '/HEAD branch/s/.*: //p'` to output the **default branch**
7+
#. Use :code:`git checkout <default branch>` Switch to the **default branch**
8+
#. Use :code:`git pull` to update branch
9+
#. Use :code:`TAG=<name>` to set a variable named **"TAG"**
10+
#. Use :code:`git tag "${TAG}"` to create a new tag in your repo
11+
#. Use :code:`git push origin "${TAG}"` to push it to remote
12+
#. GitHub workflow **CD** reacts on this tag and starts the release process

doc/user_guide/overview.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

doc/user_guide/user_guide.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
.. toctree::
77
:maxdepth: 2
88

9-
overview
109
getting_started
10+
features
1111
workflows
1212
customization
1313
migrating
14+
how_to_release

0 commit comments

Comments
 (0)