Skip to content

Commit 406c290

Browse files
authored
docs: add user guide (#26)
* chore: update .gitignore for mdbook docs * docs: add user guide * chore: add workflow to deploy user guide * docs: fix extraneous blank line
1 parent 2aae63b commit 406c290

21 files changed

+337
-0
lines changed

.github/workflows/mdbook.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy mdBook site to Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Build job
25+
build:
26+
runs-on: ubuntu-latest
27+
env:
28+
MDBOOK_VERSION: 0.5
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v6
32+
- name: Install mdBook
33+
run: |
34+
cargo install --version ${MDBOOK_VERSION} mdbook
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v5
38+
- name: Build with mdBook
39+
run: mdbook build docs/user-guide
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: docs/user-guide/book
44+
45+
# Deployment job
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
# Debug artifacts
2727
*.dSYM/
2828

29+
# mdBook build output
30+
docs/user-guide/book/
31+
2932
# profiling data
3033
*.profraw
3134
*.profdata

docs/user-guide/book.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[book]
2+
title = "ELNPack User Guide"
3+
authors = ["ELNPack Team"]
4+
language = "en"
5+
6+
[output.html]
7+
default-theme = "light"
8+
preferred-dark-theme = "ayu"

docs/user-guide/src/SUMMARY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Table of Contents
2+
3+
- [Introduction](./introduction.md)
4+
- [Install & Launch](./installation.md)
5+
- [Quick Workflow](./quickstart.md)
6+
- [UI Overview](./overview.md)
7+
- [Markdown Editor](./markdown.md)
8+
- [Attachments](./attachments.md)
9+
- [Keywords](./keywords.md)
10+
- [Metadata](./metadata.md)
11+
- [Date & Time Picker](./datetime.md)
12+
- [Saving ELN Archives](./saving.md)

docs/user-guide/src/attachments.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Attachments
2+
3+
![File Attachment](images/ui-file-attachments.webp)
4+
5+
1. Click **Add files** to open the file picker. Select all files you want to attach.
6+
2. A thumbnail will be shown for each file if possible.
7+
3. Use the **Edit** button to rename files directly from the list.
8+
4. If a file has been automatically renamed, this will be indicated by a warning icon. Hover the icon to see the original name.
9+
5. To delete files, click the **Delete** button next to each file.
10+
6. Beneath the filename, **additional information** such as file size, MIME type and SHA256 hash are displayed.
11+
12+
> [!TIP]
13+
> Files are hashed twice: first when adding an attachment, and again when saving
14+
> the ELN archive. If the hashes do not match, an error message is shown.
15+
>
16+
> This helps ensure that files are not modified in between and that the file
17+
> saved in the archive is identical to the one you attached.

docs/user-guide/src/datetime.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Date & Time Picker
2+
3+
![Date & Time Picker](./images/ui-datetime-picker.webp)
4+
5+
- Pick the calendar date and clock time of the experiment.
6+
- You can click on the **Now** button to use the current date and time.
7+
- The chosen value is stored in the archive metadata.
8+
- During a later ELN import, this exact timestamp is used as creation date.
9+
10+
> [!TIP]
11+
> Backfill older experiments by setting the original date and time.
2.58 KB
Loading
32 KB
Loading
12.6 KB
Loading
43.7 KB
Loading

0 commit comments

Comments
 (0)