mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 08:52:16 +00:00
tiny improvements to documentation
This commit is contained in:
@@ -2,3 +2,5 @@
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[docs/**/*.md]
|
||||||
|
indent_size = 4
|
||||||
|
|||||||
7
docs/developers/frontend.md
Normal file
7
docs/developers/frontend.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Frontend
|
||||||
|
|
||||||
|
The frontend is currently generated through [askama templates](https://askama.readthedocs.io/en/stable/) for server-side rendered pages
|
||||||
|
and uses Web Components for interactive elements.
|
||||||
|
|
||||||
|
Normally, content that will be statically served by the frontend module (i.e. stylesheet and web components) is embedded into the binary.
|
||||||
|
Using the `frontend-dev` feature you can serve it from source to see changes without recompiling RustiCal.
|
||||||
@@ -3,11 +3,11 @@
|
|||||||
Collection of RFCs relevant to this project
|
Collection of RFCs relevant to this project
|
||||||
|
|
||||||
- Versioning Extensions to WebDAV: [RFC 3253](https://datatracker.ietf.org/doc/html/rfc3253)
|
- Versioning Extensions to WebDAV: [RFC 3253](https://datatracker.ietf.org/doc/html/rfc3253)
|
||||||
- provides the REPORT method
|
- provides the REPORT method
|
||||||
- Calendaring Extensions to WebDAV (CalDAV): [RFC 4791](https://datatracker.ietf.org/doc/html/rfc4791)
|
- Calendaring Extensions to WebDAV (CalDAV): [RFC 4791](https://datatracker.ietf.org/doc/html/rfc4791)
|
||||||
- Scheduling Extensions to CalDAV: [RFC 6638](https://datatracker.ietf.org/doc/html/rfc6638)
|
- Scheduling Extensions to CalDAV: [RFC 6638](https://datatracker.ietf.org/doc/html/rfc6638)
|
||||||
- not sur`e yet whether to implement this
|
- not sure yet whether to implement this
|
||||||
- Collection Synchronization WebDAV [RFC 6578](https://datatracker.ietf.org/doc/html/rfc6578)
|
- Collection Synchronization WebDAV [RFC 6578](https://datatracker.ietf.org/doc/html/rfc6578)
|
||||||
- We need to implement sync-token, etc.
|
- We need to implement sync-token, etc.
|
||||||
- This is important for more efficient synchronisation
|
- This is important for more efficient synchronisation
|
||||||
- iCalendar [RFC 2445](https://datatracker.ietf.org/doc/html/rfc2445#section-3.10)
|
- iCalendar [RFC 2445](https://datatracker.ietf.org/doc/html/rfc2445#section-3.10)
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
a CalDAV/CardDAV server
|
a CalDAV/CardDAV server
|
||||||
|
|
||||||
!!! warning
|
!!! warning
|
||||||
RustiCal is **not production-ready!**
|
RustiCal is **not production-ready!**
|
||||||
I've been using it for the last few weeks and I'm slowly becoming more confident,
|
I've been using it for the last few weeks and I'm slowly becoming more confident,
|
||||||
however you'd be one of the first testers so expect bugs and rough edges.
|
however you'd be one of the first testers so expect bugs and rough edges.
|
||||||
If you still want to play around with it in its current state, absolutely feel free to do so and to open up an issue if something is not working. :)
|
If you still want to play around with it in its current state, absolutely feel free to do so and to open up an issue if something is not working. :)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
31
docs/installation/configuration.md
Normal file
31
docs/installation/configuration.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Configuration
|
||||||
|
|
||||||
|
While RustiCal (apart from user management) will work without any configuration you should still know how to configure it. :)
|
||||||
|
|
||||||
|
You can either mount a `config.toml` file or use environment variables (recommended).
|
||||||
|
|
||||||
|
To see the options you can generate a default configuration using
|
||||||
|
|
||||||
|
```sh title="Generate default config.toml"
|
||||||
|
rustical gen-config
|
||||||
|
```
|
||||||
|
|
||||||
|
To see all configuration options available you can browse the [Cargo docs](/rustical/_crate/rustical/config/struct.Config.html).
|
||||||
|
|
||||||
|
## Environment variables
|
||||||
|
|
||||||
|
The options in `config.toml` can also be configured using environment variables.
|
||||||
|
Names translate the following:
|
||||||
|
|
||||||
|
```toml title="Example config.toml"
|
||||||
|
[data_store.toml]
|
||||||
|
path = "asd"
|
||||||
|
```
|
||||||
|
|
||||||
|
becomes `RUSTICAL_DATA_STORE__TOML__PATH`.
|
||||||
|
Every variable is
|
||||||
|
|
||||||
|
- uppercase
|
||||||
|
- prefixed by `RUSTICAL_`
|
||||||
|
- Dots become `__`
|
||||||
|
- Arrays are JSON-encoded
|
||||||
@@ -40,38 +40,6 @@ App tokens are used by your CalDAV/CardDAV client (which can be managed through
|
|||||||
I recommend to generate random app tokens for each CalDAV/CardDAV client.
|
I recommend to generate random app tokens for each CalDAV/CardDAV client.
|
||||||
Since the app tokens are random they use the faster `pbkdf2` algorithm.
|
Since the app tokens are random they use the faster `pbkdf2` algorithm.
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
While RustiCal (apart from user management) will work without any configuration you should still know how to configure it. :)
|
|
||||||
|
|
||||||
You can either mount a `config.toml` file or use environment variables.
|
|
||||||
|
|
||||||
To see the options you can generate a default configuration using
|
|
||||||
|
|
||||||
```sh title="Generate default config.toml"
|
|
||||||
rustical gen-config
|
|
||||||
```
|
|
||||||
|
|
||||||
To see all configuration options available you can browse the [Cargo docs](/rustical/_crate/rustical/config/struct.Config.html).
|
|
||||||
|
|
||||||
### Environment variables
|
|
||||||
|
|
||||||
The options in `config.toml` can also be configured using environment variables.
|
|
||||||
Names translate the following:
|
|
||||||
|
|
||||||
```toml title="Example config.toml"
|
|
||||||
[data_store.toml]
|
|
||||||
path = "asd"
|
|
||||||
```
|
|
||||||
|
|
||||||
becomes `RUSTICAL_DATA_STORE__TOML__PATH`.
|
|
||||||
Every variable is
|
|
||||||
|
|
||||||
- uppercase
|
|
||||||
- prefixed by `RUSTICAL_`
|
|
||||||
- Dots become `__`
|
|
||||||
- Arrays are JSON-encoded
|
|
||||||
|
|
||||||
## Manual
|
## Manual
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
10
docs/style.css
Normal file
10
docs/style.css
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
body .md-main {
|
||||||
|
h1 {
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--md-typeset-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-tabs {
|
||||||
|
box-shadow: 0px 0 20px -10px black;
|
||||||
|
}
|
||||||
14
mkdocs.yml
14
mkdocs.yml
@@ -14,7 +14,7 @@ theme:
|
|||||||
name: Switch to light mode
|
name: Switch to light mode
|
||||||
- media: "(prefers-color-scheme: light)"
|
- media: "(prefers-color-scheme: light)"
|
||||||
scheme: default
|
scheme: default
|
||||||
primary: indigo
|
primary: white
|
||||||
accent: indigo
|
accent: indigo
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/toggle-switch
|
icon: material/toggle-switch
|
||||||
@@ -38,6 +38,13 @@ theme:
|
|||||||
- content.tooltips
|
- content.tooltips
|
||||||
- navigation.indices
|
- navigation.indices
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
|
- navigation.indexes
|
||||||
|
- navigation.indexes
|
||||||
|
- navigation.instant
|
||||||
|
- navigation.footer
|
||||||
|
|
||||||
|
extra_css:
|
||||||
|
- style.css
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- fenced_code
|
- fenced_code
|
||||||
@@ -58,10 +65,13 @@ markdown_extensions:
|
|||||||
|
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
- Installation: installation.md
|
- Installation:
|
||||||
|
- installation/index.md
|
||||||
|
- Configuration: installation/configuration.md
|
||||||
- OpenID Connect: setup/oidc.md
|
- OpenID Connect: setup/oidc.md
|
||||||
- Developers:
|
- Developers:
|
||||||
- developers/index.md
|
- developers/index.md
|
||||||
- Relevant RFCs: developers/rfcs.md
|
- Relevant RFCs: developers/rfcs.md
|
||||||
|
- Frontend: developers/frontend.md
|
||||||
- Debugging: developers/debugging.md
|
- Debugging: developers/debugging.md
|
||||||
- Cargo docs: /rustical/_crate/rustical/
|
- Cargo docs: /rustical/_crate/rustical/
|
||||||
|
|||||||
Reference in New Issue
Block a user