Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pcisar committed Mar 27, 2023
1 parent 5ad1bc6 commit c35a763
Show file tree
Hide file tree
Showing 222 changed files with 48,116 additions and 17,227 deletions.
33 changes: 33 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#########
Changelog
#########

Version 0.8.0
=============

* Milestone 5.

Saturnin can now be considered as early beta. There will be more additions, extensions
and improvements before the 1.0 release, but the platform is almost feature-complete and
the functionality provided is considered stable and ready for testing. However, some
backwards incompatible changes in future releases are still possible.

Unreleased versions 0.7.1 - 0.7.12
==================================

* Milestones 3 and 4.

Version 0.7.0
=============

* Milestone 2

Version 0.1.0
=============

Initial release.

.. _saturnin: https://pypi.org/project/firebird-lib/
.. _releases: https://github.com/FirebirdSQL/python3-driver/releases
.. _Dash: https://kapeli.com/dash
.. _Zeal: https://zealdocs.org/
18 changes: 0 additions & 18 deletions docs/changelog.txt

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.txt'
source_suffix = '.rst'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
116 changes: 116 additions & 0 deletions docs/getting-started.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@

###############
Getting Started
###############

Installation
************

You will need Python v3.8 or later to install Saturnin.

For regular deployments, we recommend installing using the pipx_ tool, which installs into
a separate virtual Python environment and exposes all executable commands in the search path.

::

> pip install pipx
> pipx install saturnin

If you want to develop your own services using the Saturnin SDK, we recommend that you
first create a separate virtual environment into which you install Saturnin in the usual
way with the pip_ tool.

Initialization
**************

Saturnin uses a number of files and directories whose location in the file system corresponds
to the standards for the platform on which it is installed. This basic directory placement
scheme can be changed by using the `SATURNIN_HOME` environment variable, which sets the root
of the other directory locations. Alternatively, you can create a `"home"` subdirectory in
the root directory of the virtual environment in which Saturnin is isolated.

.. important::

Because on Linux or MacOS the default location of some directories may require higher
than normal access rights, we recommend that you always use the home directory setting
on these platforms.

.. tip::

To set the home directory in the virtual environment (recommended when installing with
pipx_), use the command::

> saturnin create home

The next step is to initialize the Saturnin installation with the command::

> saturnin initialize

Saturnin console
****************

The `saturnin` tool is used to manage the Saturnin platform installation. It can be operated
in two modes:

- **Single command (direct) mode.** The required command and parameters are entered directly on
the command line, and after the command is executed, the tool is terminated.

- **Interactive console mode** activated by running the tool without additional parameters.
The interactive console offers an enhanced command line with persistent command history,
command and parameter completion, and interactive help.

.. note::

The command set available in console mode differs from command set available in direct mode,
as some commands (typically those required to run only once or not very often like initialize
or create home) are available only in direct mode.

For normal work, we recommend using the interactive console mode. In the following sections,
all the commands described are entered in the interactive console.

Installing services
*******************

Immediately after installation, Saturnin does not provide any Butler services. These
services need to be installed separately. Although you can install service packages with
the standard pip utility, we recommend that you use saturnin's `install package`,
`uninstall package`, and `pip` commands to install, uninstall, or manage service packages,
as these commands also update the necessary registries that Saturnin uses to work with
Butler services and Saturnin applications.

.. note::

If necessary, the command: `update registry` can be used to update the registries.

To install package with Saturnin core services, use command::

> install package saturnin-core

Using Firebird services
***********************

To use Butler services that work with Firebird server, you need to create (and update)
a configuration file for the firebird driver using the commands::

> create config firebird
> edit config firebird

Saturnin recipes
****************

Recipes are Saturnin-specific configuration files with instructions for running Butler
services built for Saturnin. Recipes can be created with the create recipe command, which
creates a recipe template that typically needs to be modified further (because it only
contains default values). Recipes created independently (e.g. by a solution supplier or
provided by installed Saturnin application) must be installed with the `install recipe` command.

Created or installed recipes can be run with the `run recipe-name` command. You can get
a list of recipes that can be started with the `list recipes` command.

.. seealso::

For more information, see the :doc:`Usage Guide <usage-guide>`.

.. _PYPI: https://pypi.org/
.. _pip: https://pypi.org/project/pip/
.. _pipx: https://pypa.github.io/pipx/
18 changes: 0 additions & 18 deletions docs/getting-started.txt

This file was deleted.

19 changes: 10 additions & 9 deletions docs/index.txt → docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@

########
Saturnin
########

Saturnin is an implementation of Firebird Butler platform for Python.
#####################################################
Saturnin - The `Firebird Butler`_ platform for Python
#####################################################

.. note:: Requires Python 3.8+

.. tip:: You can download docset for Dash_ (MacOS) or Zeal_ (Windows / Linux) documentation
readers from releases_ at github.

Content
*******
Saturnin development is sponsored by IBPhoenix_.

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

getting-started
usage-guide
reference
changelog
license

Saturnin development is sponsored by IBPhoenix_.
|
|
|
.. include:: getting-started.rst

.. _IBPhoenix: http://www.ibphoenix.com
.. _Python: http://python.org
Expand All @@ -33,3 +33,4 @@ Saturnin development is sponsored by IBPhoenix_.
.. _releases: https://github.com/FirebirdSQL/saturnin/releases
.. _Dash: https://kapeli.com/dash
.. _Zeal: https://zealdocs.org/
.. _Firebird Butler: https://firebird-butler.readthedocs.io
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 60c841d4059dfa049b1567bcbad4f808
config: 7d8a4922aaeae69ea1bde7dc669170fc
tags: 645f666f9bcd5a90fca523b33c5a78b7

0 comments on commit c35a763

Please sign in to comment.