Skip to content

Commit d876319

Browse files
authored
Tracking issue for docs unification (#112)
1 parent 7188ffe commit d876319

52 files changed

Lines changed: 197 additions & 11973 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,45 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
64
push:
7-
branches: [ main ]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
5+
branches: [main]
96
workflow_dispatch:
107

11-
# Allow this job to clone the repo and create a page deployment
128
permissions:
139
contents: read
1410
pages: write
1511
id-token: write
1612

13+
# Allow only one concurrent deployment
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
1718
jobs:
1819
build:
1920
runs-on: ubuntu-latest
2021
steps:
21-
- name: Checkout your repository using git
22+
- name: Checkout repository
2223
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v4
25-
# with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v4
27+
with:
28+
version: "latest"
29+
30+
- name: Set up Python
31+
run: uv python install 3.12
32+
33+
- name: Install dependencies
34+
run: uv sync
35+
36+
- name: Build site
37+
run: uv run mkdocs build
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: site
2943

3044
deploy:
3145
needs: build

.gitignore

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# build output
2-
dist/
3-
# generated types
4-
.astro/
2+
site/
53

6-
# dependencies
7-
node_modules/
8-
9-
# logs
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13-
pnpm-debug.log*
4+
# Python / uv
5+
.venv/
6+
__pycache__/
7+
*.py[cod]
8+
.python-version
9+
uv.lock
1410

1511
# environment variables
1612
.env
@@ -22,3 +18,6 @@ pnpm-debug.log*
2218
# swap vim files
2319
*.swp
2420
*.swo
21+
22+
# multirepo temp directory
23+
temp_dir/

.vscode/extensions.json

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

.vscode/launch.json

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

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
# Atuin docs
22

3-
This powers docs.atuin.sh
3+
This powers docs.atuin.sh - the unified documentation site for Atuin CLI and Atuin Desktop.
44

5-
You will find markdown files within src/content/docs
5+
This site uses [MkDocs](https://www.mkdocs.org/) with the [Material theme](https://squidfunk.github.io/mkdocs-material/) and the [mkdocs-multirepo-plugin](https://github.com/jdoiro3/mkdocs-multirepo-plugin) to pull documentation from multiple repositories.
66

7-
Get started with
7+
## Documentation sources
88

9+
- **Atuin CLI**: Documentation lives in the [atuinsh/atuin](https://github.com/atuinsh/atuin) repository under `docs/`
10+
- **Atuin Desktop**: Documentation lives in the [atuinsh/desktop](https://github.com/atuinsh/desktop) repository under `docs/`
11+
12+
## Local development
13+
14+
```bash
15+
# Install dependencies
16+
uv sync
17+
18+
# Run local dev server
19+
uv run mkdocs serve
20+
21+
# Build the site
22+
uv run mkdocs build
923
```
10-
npm install
11-
npm run dev
12-
```
24+
25+
## Contributing
26+
27+
To contribute to the documentation:
28+
29+
- For Atuin CLI docs, submit PRs to [atuinsh/atuin](https://github.com/atuinsh/atuin)
30+
- For Atuin Desktop docs, submit PRs to [atuinsh/desktop](https://github.com/atuinsh/desktop)
31+
- For site-wide changes (navigation, theme, etc.), submit PRs to this repository

astro.config.mjs

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

docs/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Atuin Documentation
2+
3+
Welcome to the unified Atuin documentation.
4+
5+
## Atuin CLI
6+
7+
A magical shell history tool that replaces your existing shell history with a SQLite database, and records additional context for your commands. Sync your shell history between all of your machines - fully end-to-end encrypted.
8+
9+
[Get started with Atuin CLI →](cli/)
10+
11+
## Atuin Desktop
12+
13+
Runbooks and automation for your terminal. Build, share, and run operational runbooks with a powerful block-based interface.
14+
15+
[Get started with Atuin Desktop →](desktop/)

docs/stylesheets/extra.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Light/dark mode image switching */
2+
body[data-md-color-scheme="default"] .img-dark {
3+
display: none !important;
4+
}
5+
6+
body[data-md-color-scheme="slate"] .img-light {
7+
display: none !important;
8+
}

mkdocs.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
site_name: Atuin Documentation
2+
site_url: https://docs.atuin.sh
3+
repo_url: https://github.com/atuinsh/atuin
4+
repo_name: atuinsh/atuin
5+
6+
theme:
7+
name: material
8+
palette:
9+
- scheme: default
10+
primary: deep purple
11+
accent: deep purple
12+
toggle:
13+
icon: material/brightness-7
14+
name: Switch to dark mode
15+
- scheme: slate
16+
primary: deep purple
17+
accent: deep purple
18+
toggle:
19+
icon: material/brightness-4
20+
name: Switch to light mode
21+
features:
22+
- navigation.tabs
23+
- navigation.sections
24+
- navigation.expand
25+
- search.suggest
26+
- search.highlight
27+
- content.code.copy
28+
- content.action.edit
29+
- content.action.view
30+
31+
plugins:
32+
- search
33+
- multirepo:
34+
cleanup: false
35+
- git-revision-date-localized:
36+
enable_creation_date: true
37+
- redirects:
38+
redirect_maps:
39+
"guide/getting-started.md": "cli/guide/getting-started.md"
40+
"guide/installation.md": "cli/guide/installation.md"
41+
"guide/sync.md": "cli/guide/sync.md"
42+
"guide/import.md": "cli/guide/import.md"
43+
"guide/basic-usage.md": "cli/guide/basic-usage.md"
44+
"guide/dotfiles.md": "cli/guide/dotfiles.md"
45+
"guide/theming.md": "cli/guide/theming.md"
46+
"configuration/config.md": "cli/configuration/config.md"
47+
"configuration/key-binding.md": "cli/configuration/key-binding.md"
48+
"reference/list.md": "cli/reference/list.md"
49+
"reference/search.md": "cli/reference/search.md"
50+
"reference/stats.md": "cli/reference/stats.md"
51+
"reference/doctor.md": "cli/reference/doctor.md"
52+
"reference/daemon.md": "cli/reference/daemon.md"
53+
"reference/import.md": "cli/reference/import.md"
54+
"reference/info.md": "cli/reference/info.md"
55+
"reference/gen-completions.md": "cli/reference/gen-completions.md"
56+
"reference/prune.md": "cli/reference/prune.md"
57+
"reference/sync.md": "cli/reference/sync.md"
58+
"self-hosting/server-setup.md": "cli/self-hosting/server-setup.md"
59+
"self-hosting/usage.md": "cli/self-hosting/usage.md"
60+
"self-hosting/docker.md": "cli/self-hosting/docker.md"
61+
"self-hosting/kubernetes.md": "cli/self-hosting/kubernetes.md"
62+
"self-hosting/systemd.md": "cli/self-hosting/systemd.md"
63+
"known-issues.md": "cli/known-issues.md"
64+
"integrations.md": "cli/integrations.md"
65+
"faq.md": "cli/faq.md"
66+
"uninstall.md": "cli/uninstall.md"
67+
"sync-v2.md": "cli/sync-v2.md"
68+
69+
markdown_extensions:
70+
- pymdownx.highlight:
71+
anchor_linenums: true
72+
- pymdownx.superfences
73+
- pymdownx.tabbed:
74+
alternate_style: true
75+
- admonition
76+
- pymdownx.details
77+
- attr_list
78+
- md_in_html
79+
- tables
80+
- pymdownx.keys
81+
- pymdownx.emoji:
82+
emoji_index: !!python/name:material.extensions.emoji.twemoji
83+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
84+
85+
extra_css:
86+
- stylesheets/extra.css
87+
88+
extra:
89+
social:
90+
- icon: fontawesome/brands/github
91+
link: https://github.com/atuinsh/atuin
92+
- icon: fontawesome/brands/discord
93+
link: https://discord.gg/jR3tfchVvW
94+
95+
nav:
96+
- Home: index.md
97+
- CLI: "!import https://github.com/atuinsh/atuin?branch=main&docs_dir=docs/docs/*&config=docs/mkdocs.yml"
98+
- Desktop: "!import https://github.com/atuinsh/desktop?branch=main&docs_dir=docs/docs/*&config=docs/mkdocs.yml"

0 commit comments

Comments
 (0)