Skip to content

Commit aa7a94f

Browse files
authored
Migrate documentation from rst to MyST (#51)
* Migrate documentation from rst to MyST * fix badge path
1 parent c8f0f9d commit aa7a94f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2185
-2826
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: 3.12
26+
- name: Remove old docs
27+
run: rm -rf ./docs/source/repo_docs
2628
- name: Build docs
2729
run: ./copy_docs.py ./docs/source/repo_docs
2830
- name: Create Pull Request

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# ![Riptide](https://riptide-docs.readthedocs.io/en/latest/_images/logo.png)
2+
3+
[<img src="https://readthedocs.org/projects/riptide-docs/badge/?version=latest" alt="Documentation Status">](https://riptide-docs.readthedocs.io/en/latest/)
4+
5+
Riptide is a set of tools to manage development environments for web applications.
6+
It's using container virtualization tools, such as [Docker](https://www.docker.com/)
7+
to run all services needed for a project.
8+
9+
It's goal is to be easy to use by developers.
10+
Riptide abstracts the virtualization in such a way that the environment behaves exactly
11+
as if you were running it natively, without the need to install any other requirements
12+
the project may have.
13+
14+
Riptide consists of a few reposiories, find the entire [overview](https://riptide-docs.readthedocs.io/en/latest/development.html) in the documentation.
15+
16+
## Riptide Repository
17+
18+
This repository contains services, commands and apps that can be used in Riptide projects.
19+
20+
The master branch contains the up-to-date versions for all objects, branches for certain
21+
Riptide versions may exist (eg. 0.1 for version 0.1).
22+
23+
The apps, services and commands contain their own README files with more information.
24+
Browse the `app`, `service` and `command` directories to find objects you may
25+
find useful for your projects.
26+
27+
This is the public community repository for Riptide. Please feel free to contribute!
28+
29+
## Contributing
30+
31+
If you want to submit your own apps, services and or commands, open a pull request. Your
32+
objects need to be valid for the newest Riptide version, or,if you are opening a pull
33+
request for older versions, with the respective version. Automatic tests will check basic
34+
functionality for your objects.
35+
36+
You need to provide an up-to-date documentation for your object, in form of a README.rst. Templates
37+
can be found in the \_contrib-templates directory.
38+
39+
### Submission guidelines
40+
41+
- Images should be either:
42+
43+
- official (marked as "Official Image" in the Docker hub),
44+
- from the "[riptidepy](https://hub.docker.com/u/riptidepy)" org on Docker Hub (see [docker_images]).
45+
- or very well maintained, open source and trusted (eg. high amount of stars on Github)
46+
47+
- When using variables, do not reference fields that contain other variables (expect
48+
in `<Service>.notices`).
49+
50+
- When using the variable helper function `parent()`, do not reference fields that
51+
contain other variables.
52+
53+
- `do_not_create_user` must not be `True` for services.
54+
55+
- Standalone services must not have any roles set (except for `db`).
56+
57+
More Guidelines may be added.
58+
59+
## Documentation
60+
61+
Documentation for apps, services and commands can be found inside the directories
62+
of this repository.
63+
64+
The complete documentation for Riptide can be found at [Read the Docs](https://riptide-docs.readthedocs.io/en/latest/).

README.rst

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

_contrib-templates/README_app.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# NAME_OF_THE_APP
2+
3+
% General description of the app
4+
5+
6+
## `/app/PATH/PATH`
7+
8+
% If this app is based on some other entity:
9+
10+
**Based on**: [/app/xyz](https://github.com/Parakoopa/riptide-repo/tree/master/app/xyz)
11+
12+
% Description of this version of the app, with the most important things to note
13+
14+
% Now follow descriptions of certain properties of this entity.
15+
16+
% If some properties are inherited, you only need to describe what was changed
17+
18+
% (=> what is actually contained in your yaml document)
19+
20+
% Properties that don't apply can be left out
21+
22+
### Imports
23+
24+
| Key | Title | Target | Description |
25+
| ------- | -------------- | --------- | ---------------------------- |
26+
| example | Example Import | files/pub | A description of this import |
27+
| | | | |
28+
| | | | |
29+
30+
### Services
31+
32+
#### SERVICE
33+
34+
% see contents of README_service.rst (starting at ``/service/PATH/PATH``)
35+
36+
% "Suggested Roles" should be called "Roles" instead.
37+
38+
##### Role Requirements
39+
40+
### Commands
41+
42+
#### COMMAND
43+
44+
% see contents of README_command.rst (starting at ``/command/PATH/PATH``)
45+
46+
##### Role Requirements
47+
48+
## `/app/PATH/PATH2`
49+
50+
% other variants, see above.
51+
52+
## `/app/PATH/PATH3`, `/app/PATH/PATH4`
53+
54+
% if variants are very similar, you can group them

_contrib-templates/README_app.rst

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# NAME_OF_THE_COMMAND
2+
3+
% General description of the command
4+
5+
6+
## `/command/PATH/PATH`
7+
8+
% If this service is based on some other entity:
9+
10+
**Based on**: [/command/xyz](https://github.com/Parakoopa/riptide-repo/tree/master/command/xyz)
11+
12+
% Description of this version of the command, with the most important things to note
13+
14+
% Now follow descriptions of certain properties of this entity.
15+
16+
% If some properties are inherited, you only need to describe what was changed
17+
18+
% (=> what is actually contained in your yaml document)
19+
20+
% Properties that don't apply can be left out
21+
22+
### Role Requirements
23+
24+
**Role**: `xyz`
25+
26+
This command requires another service that has the role `xyz` set.
27+
28+
% Describe the requirements this other service needs to have and explain
29+
30+
% what this service is used for
31+
32+
### Environment variables
33+
34+
| Key | Required? | Already set? | Example Value(s) | Description |
35+
| ----------- | --------- | ------------------ | ---------------- | --------------------------------------------------------------------------------- |
36+
| HELLO_WORLD | yes | yes (default: XYZ) | XYZ, ABC | Description of a setting environment value. Already set values should come first. |
37+
| FOO_BAR | no | no | FOO, BAR | Description 2 |
38+
| | | | | |
39+
40+
### Additional volumes
41+
42+
| Name | Source | Source path | Target path | Description |
43+
| ------------------ | --------------------------- | ------------------------------------------- | ----------- | ----------- |
44+
| as_in_config_entry | Home directory | ~/.npm | ~/.npm | Description |
45+
| | Data folder | \_riptide/data/\_\_\_/name | | |
46+
| | Part of source code | src/foo | | |
47+
| | Config from another service | (config 'xyz' from service with role 'abc') | | |
48+
| | Other | /hardcoded/path | | |
49+
50+
## `/command/PATH/PATH2`
51+
52+
% other variants, see above.
53+
54+
## `/command/PATH/PATH3`, `/command/PATH/PATH4`
55+
56+
% if variants are very similar, you can group them

0 commit comments

Comments
 (0)