Skip to content

Commit 5ef4730

Browse files
authored
MRG: Merge pull request #738 from octue/move-twined-service-start-command
Improve CLI subcommand organisation and convert docs to Material for Mkdocs
2 parents d1c12ff + daddfdd commit 5ef4730

File tree

135 files changed

+4826
-7240
lines changed

Some content is hidden

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

135 files changed

+4826
-7240
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@ repos:
3131
hooks:
3232
- id: prettier
3333

34-
- repo: https://github.com/thclark/pre-commit-sphinx
35-
rev: 0.0.3
36-
hooks:
37-
- id: build-docs
38-
language_version: python3
39-
additional_dependencies:
40-
- "poetry==1.2.0b2"
41-
- "Sphinx>=5,<8"
42-
- "sphinx-rtd-theme>=1,<2"
43-
- "sphinx-tabs>=3,<4"
44-
- "sphinx-toolbox>=3"
45-
- "git+https://github.com/octue/octue-sdk-python.git@main"
46-
4734
- repo: https://github.com/windpioneers/pre-commit-hooks
4835
rev: 0.0.5
4936
hooks:

.readthedocs.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# Read the Docs configuration file for Sphinx projects
2-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3-
41
version: 2
52

63
build:
7-
os: ubuntu-22.04
4+
os: "ubuntu-24.04"
85
tools:
9-
python: "3.10"
10-
11-
sphinx:
12-
configuration: docs/source/conf.py
6+
python: "3.13"
7+
jobs:
8+
pre_install:
9+
- pip install -r docs/requirements.txt
1310

14-
python:
15-
install:
16-
- requirements: docs/requirements.txt
11+
mkdocs:
12+
configuration: mkdocs.yml

docs/contributing.md renamed to CONTRIBUTING.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,36 +84,12 @@ You can run pre-commit hooks without making a commit, too, like:
8484
pre-commit run black --all-files
8585
```
8686

87-
or
88-
89-
```
90-
# -v gives verbose output, useful for figuring out why docs won't build
91-
pre-commit run build-docs -v
92-
```
93-
9487
## Documentation
9588

96-
### Building documents automatically
97-
98-
The documentation will build automatically in a pre-configured environment when you make a commit.
99-
100-
In fact, the way `pre-commit` works, you won't be allowed to make the commit unless the documentation builds. This way
101-
we avoid getting broken documentation pushed to the main repository on any commit so we can rely on builds working.
102-
103-
### Building documents manually
104-
105-
**If you did need to build the documentation**
106-
107-
Install `doxygen`. On a mac, that's `brew install doxygen`; other systems may differ.
108-
109-
Install sphinx and other requirements for building the docs:
89+
To serve the docs locally, run:
11090

11191
```
112-
pip install -r docs/requirements.txt
92+
mkdocs serve
11393
```
11494

115-
Run the build process:
116-
117-
```
118-
sphinx-build -b html docs/source docs/html
119-
```
95+
This makes the docs available on `localhost` via a hot-reloading server

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
77
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10961975.svg)](https://doi.org/10.5281/zenodo.10961975)
88

9-
# Octue Python SDK <img src="./docs/source/images/213_purple-fruit-snake-transparent.gif" alt="Purple Fruit Snake" width="100"/></span>
9+
# Octue Python SDK <img src="./docs/images/213_purple-fruit-snake-transparent.gif" alt="Purple Fruit Snake" width="100"/></span>
1010

1111
The python SDK for running [Octue](https://octue.com) data services, digital twins, and applications - get faster data
1212
groundwork so you have more time for the science!
@@ -36,30 +36,20 @@ octue --help
3636
```text
3737
Usage: octue [OPTIONS] COMMAND [ARGS]...
3838
39-
The CLI for the Octue SDK. Use it to start an Octue data service or digital
40-
twin locally or run an analysis on one locally.
39+
The CLI for Octue SDKs and APIs, most notably Twined.
4140
4241
Read more in the docs: https://octue-python-sdk.readthedocs.io/en/latest/
4342
4443
Options:
45-
--id UUID UUID of the analysis being undertaken. None
46-
(for local use) will cause a unique ID to be
47-
generated.
4844
--logger-uri TEXT Stream logs to a websocket at the given URI.
4945
--log-level [debug|info|warning|error]
5046
Log level used for the analysis. [default:
5147
info]
52-
--force-reset / --no-force-reset
53-
Forces a reset of analysis cache and outputs
54-
[For future use, currently not implemented]
55-
[default: force-reset]
5648
--version Show the version and exit.
5749
-h, --help Show this message and exit.
5850
5951
Commands:
60-
deploy Deploy a python app to the cloud as an Octue service or digital...
61-
run Run an analysis on the given input data using an Octue service...
62-
start Start an Octue service or digital twin locally as a child so it...
52+
twined The Twined CLI.
6353
```
6454

6555
## Deprecated code
@@ -95,4 +85,4 @@ python3 -m unittest
9585

9686
## Contributing
9787

98-
Take a look at our [contributing](/docs/contributing.md) page.
88+
Take a look at our [contributing](/CONTRIBUTING.md) page.

docs/.gitignore

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

0 commit comments

Comments
 (0)