Skip to content

Commit 8d515f7

Browse files
authored
4.0 (#2)
added 4.0 documentation. Still WIP
1 parent a2791a7 commit 8d515f7

19 files changed

Lines changed: 1108 additions & 121 deletions

.github/workflows/build-deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'v*'
88

99
env:
10-
CURRENT_MAJOR_VERSION: "3.0"
10+
CURRENT_MAJOR_VERSION: "4.0"
1111

1212
jobs:
1313
deploy:
@@ -42,8 +42,7 @@ jobs:
4242
4343
if [ "$BRANCH_NAME" == "main" ]; then
4444
echo "Deploying MAIN as Version ${{ env.CURRENT_MAJOR_VERSION }} (Latest)"
45-
uv run mike deploy --deploy-prefix package -b deploy ${{ env.CURRENT_MAJOR_VERSION }} latest --update-aliases --push
46-
uv run mike set-default latest --push --deploy-prefix package -b deploy
45+
uv run mike deploy --deploy-prefix package -b deploy ${{ env.CURRENT_MAJOR_VERSION }} --push
4746
else
4847
# Extracts version from branch name (e.g., v3.0 -> 3.0)
4948
VERSION=$(echo $BRANCH_NAME | sed 's/^v//')

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/site/
22
/.idea/
33
/.venv/
4+
.aider*

README.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Reitti Documentation
2+
3+
[![Build and Deploy](https://github.com/dedicatedcode/reitti-documentation/actions/workflows/build-deploy.yml/badge.svg)](https://github.com/dedicatedcode/reitti-documentation/actions/workflows/build-deploy.yml)
4+
5+
This repository contains the documentation for [Reitti](https://www.dedicatedcode.com/projects/reitti/), a personal location tracking and analysis application.
6+
7+
You can find the online version of the Reitti documentation at <https://www.dedicatedcode.com/projects/reitti/latest/>
8+
9+
## Contents
10+
- [Building Locally](#building-locally)
11+
- [Versioning](#versioning)
12+
- [Contribution Guidelines](#contribution-guidelines)
13+
- [Deployment](#deployment)
14+
- [Project Structure](#project-structure)
15+
- [Technology Stack](#technology-stack)
16+
- [About Reitti](#about-reitti)
17+
- [Getting Help](#getting-help)
18+
- [License](#license)
19+
20+
## Building Locally
21+
22+
This project uses (https://docs.astral.sh/uv/) for dependency management. To build the documentation locally:
23+
24+
```bash
25+
# Install dependencies
26+
uv sync
27+
28+
# Build the documentation
29+
uv run mkdocs build
30+
31+
# Serve locally for preview
32+
uv run mkdocs serve
33+
```
34+
35+
The site will be available at `http://localhost:8000`.
36+
37+
## Versioning
38+
39+
This documentation uses (https://github.com/jimporter/mike) for versioning with [MkDocs](https://www.mkdocs.org/). The documentation is organized by branches:
40+
41+
- **`main`** - Contains the latest documentation, deployed as the current major version (4.0) with the `latest` alias
42+
- **`v3`** - Contains the stable 3.x documentation
43+
44+
When viewing the documentation, you can switch between versions using the version selector in the header.
45+
46+
## Contribution Guidelines
47+
48+
If you are submitting documentation for the **current stable release**, submit it to the corresponding branch. For example, documentation for version 3.x would be submitted to the `v3` branch. Documentation intended for the next release should be submitted to the `main`
49+
branch.
50+
51+
Every documentation page includes an "edit this page on github" link at the bottom for easy contributions.
52+
53+
## Deployment
54+
55+
Documentation is automatically built and deployed via GitHub Actions when changes are pushed to `main` or version branches (e.g., `v3`). The deployment process:
56+
57+
1. Builds the documentation using MkDocs
58+
2. Deploys versioned documentation using mike
59+
3. Syncs the built documentation to the server
60+
4. Invalidates the CDN cache
61+
62+
See [`.github/workflows/build-deploy.yml`](.github/workflows/build-deploy.yml) for the complete build and deployment configuration.
63+
64+
## Project Structure
65+
66+
```
67+
reitti-documentation/
68+
├── docs/ # Documentation source files
69+
│ ├── about/ # About Reitti
70+
│ ├── api/ # API documentation
71+
│ ├── configurations/ # Configuration guides
72+
│ ├── integrations/ # Integration guides
73+
│ ├── memories/ # Memories feature
74+
│ ├── usage/ # Usage guides
75+
│ └── assets/ # CSS, JS, images
76+
├── theme/ # Custom MkDocs theme overrides
77+
├── mkdocs.yml # MkDocs configuration
78+
├── pyproject.toml # Python dependencies
79+
└── .github/workflows/ # CI/CD pipelines
80+
```
81+
82+
## Technology Stack
83+
84+
- **Documentation Generator:** [MkDocs](https://www.mkdocs.org/)
85+
- **Theme:** (https://github.com/squidfunk/mkdocs-shadcn) with custom overrides
86+
- **Versioning:** (https://github.com/jimporter/mike)
87+
- **Plugins:**
88+
- `mkdocs-nav-weight` - Custom navigation ordering
89+
- `badges` - Badge support
90+
- `search` - Built-in search
91+
- `redirects` - URL redirection
92+
- **Package Manager:** (https://docs.astral.sh/uv/)
93+
- **CI/CD:** GitHub Actions
94+
- **Deployment:** rsync to server + Cloudflare CDN cache invalidation
95+
- **Python:** ≥ 3.12
96+
97+
## About Reitti
98+
99+
Reitti (Finnish for "route" or "path") is a comprehensive personal location tracking and analysis application. It helps you:
100+
101+
- Track your daily movements and locations
102+
- Analyze travel patterns and statistics
103+
- Create memories from your visits
104+
- Integrate with various location sources (mobile apps, OwnTracks, Home Assistant, etc.)
105+
- Maintain privacy-focused self-hosted deployment
106+
107+
The application is designed to be self-hosted, giving you full control over your location data.
108+
109+
## Getting Help
110+
111+
- **Documentation:** [Online Documentation](https://www.dedicatedcode.com/projects/reitti/latest/)
112+
- **Issues:** [GitHub Issues](https://github.com/dedicatedcode/reitti-documentation/issues)
113+
- **Source Code:** [Reitti Application](https://github.com/dedicatedcode/reitti)
114+
115+
## License
116+
117+
See the [LICENSE](LICENSE) file for details. This project uses the CC0 1.0 Universal license.

docs/about/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Reitti provides a comprehensive set of features for personal location tracking a
2626
- **Multi-user Support**: Multiple user accounts with individual data isolation
2727
- **API Token Management**: Secure API access with token-based authentication
2828
- **User Profile Management**: Customizable display names and secure password management
29-
- **Magic Link Sharing**: Share location data without requiring account creation ([Learn more](../configurations/share-access.md))
29+
- **Magic Link Sharing**: Share location data without requiring account creation ([Learn more](../usage/share-access.md))
3030
- **OpenID Connect Integration**: Enterprise authentication with automatic user provisioning ([Setup guide](../configurations/oidc.md))
3131

3232
#### Geocoding & Address Resolution

docs/configurations/custom-tiles.md

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

docs/configurations/photo-integration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ Reitti does not download or store any images from Immich. Instead, it proxies im
5050
- Images are served directly from your Immich instance to your browser
5151
- No additional storage is used in Reitti
5252
- No CORS configuration is needed in Immich
53-
- Your photos remain securely in your Immich instance
53+
- Your photos remain secure in your Immich instance
54+
55+
The exception is when you use the "Memories" feature, and you add photos from Immich to your Memories.
5456

5557
### Prerequisites
5658

0 commit comments

Comments
 (0)