Skip to content

Commit

Permalink
doc: Initial MkDocs (material theme) setup for BIT manual
Browse files Browse the repository at this point in the history
MkDocs setup using the material theme.
Thank you to Kosta Vukicevic (@stcksmsh) (#1659) providing a first prototyp.

Current content of the manual is not modified but nearly identical to the one generated by Sphinx setup.
  • Loading branch information
buhtz authored Aug 11, 2024
1 parent dcf81de commit 366ef00
Show file tree
Hide file tree
Showing 79 changed files with 6,848 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[codespell]
# Folders and files to skip
skip = .codespellrc,*.po,Makefile,*.desktop,.git,__pycache__,*.pyc,languages.py,_build,TRANSLATIONS,./doc/manual/html
skip = .codespellrc,*.po,Makefile,*.desktop,.git,__pycache__,*.pyc,languages.py,_build,TRANSLATIONS,./doc/manual/html,mkdocs.yml
# Print N lines of surrounding context
context = 1
# Check hidden files also (empty means True)
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ qt/Makefile
common/doc-dev/_build/doctrees
common/doc-dev/_build/html

# MkDocs
doc/manual/html/

# PyCharm IDE project settings
.idea

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Germar Reitze, Taylor Raack</sub><br />
<sub>Copyright (C) 2022 Christian Buhtz, Michael Büker, Jürgen Altfeld</sub>

_Back In Time_ is an easy-to-use tool to backup files and folders.
It runs on GNU Linux (not on Windows or OS X/macOS) and provides a command line tool `backintime` and a
GUI `backintime-qt` both written in Python3. It uses
It runs on GNU/Linux (not on Windows or OS X/macOS) and provides a command line
tool `backintime` and a GUI `backintime-qt` both written in Python3. It uses
[`rsync`](https://rsync.samba.org/) to take manual or scheduled snapshots and
stores them locally or remotely through SSH. Each snapshot is in its own folder
with copies of the original files, but unchanged files are hard-linked between
Expand All @@ -34,11 +34,12 @@ those labeled as [good first issues](https://github.com/bit-team/backintime/labe
and [help wanted](https://github.com/bit-team/backintime/issues?q=is%3Aissue+is%3Aopen+label%3AHELP-WANTED).

## The team
The current team started in summer of 2022 (with #1232) and constitutes the
project's 3rd generation of maintainers. Consisting of three members with
diverse backgrounds (@aryoda, @buhtz, @emtiu), the team benefits from the
assistance of the former maintainer, @Germar, who contributes from behind the
scenes.
The current team started in summer of 2022
(with [#1232](https://github.com/bit-team/backintime/issues/1232)) and
constitutes the project's 3rd generation of maintainers. Consisting of three
members with diverse backgrounds (@aryoda, @buhtz, @emtiu), the team benefits
from the assistance of the former maintainer, @Germar, who contributes from
behind the scenes.

All team members are engaged in every aspect of the project, including code
analysis, documentation, solving issues, and the implementation of new
Expand Down
20 changes: 20 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This directory contains the source files for various types of documentation
for _Back In Time_.

- `manual`: User Manual

### How to reduce file size of images
For PNG images `optipng` could be used. *Attention*: By default it overwrites
the original files. The following command use the highest possible optimization
and write the result in a subfolder.

$ optipng --dir subfolder -o7 *.png

As an alternative `pngcrush` can be used. The following determine the best
algorithm by its own.

$ pngcrush -d subfolder -brute *.png

Applied to a set of _Back In Time_ dark mode screenshots, their file size
was reduced by approximately 13%. Both applications show no significant
differences. The visual result is indistinguishable from the original.
77 changes: 77 additions & 0 deletions doc/manual/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Project information
site_name: Back In Time - User Manual
site_author: BIT Team

# Source files (markdown)
docs_dir: src
# Output directory
site_dir: html
# site_url: https://backintime-docs.readthedocs.io/en/latest/
# site_description: Back In Time is a simple backup tool for Linux inspired by "FlyBack".

# Repository information
repo_name: backintime
# repo_url: https://github.com/bit-team/backintime

# Entrie labels determined by the the 1st level heading
nav:
- 'index.md'
- 'quick-start.md'
- 'main-window.md'
- 'settings.md'
- 'snapshots-dialog.md'
- 'log.md'
- 'additional.md'

markdown_extensions:
# Boxex for warnings, etc.
# https://squidfunk.github.io/mkdocs-material/reference/admonitions/
- admonition
- toc:
permalink: true

# Configuration
theme:
name: material
logo: _images/logo48.png
favicon: _images/logo48.png
language: en
features:
# Load content of main page only instead of the whole site
- navigation.instant
# Loading in background while hovering over the navigation item
- navigation.instant.prefetch
# Unfold all entries in navigation side bar
- navigation.expand
# Render navigation path on above the title of each page
- navigation.path
# Back-to-top-button
- navigation.top
# Render sub-headings in navigation side bar
- toc.integrate
- toc.follow
# Highlight search results
- search.highlight
# Link current document to GitHub
- content.action.edit
- content.action.view
# Copy and highlight code blocks
- content.code.copy
- content.code.select
# Colorsettings regarding dark/light mode
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: blue grey
accent: blue
toggle:
icon: material/toggle-switch
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: grey
accent: blue
toggle:
icon: material/toggle-switch-off
name: Switch to system preference

70 changes: 70 additions & 0 deletions doc/manual/src/_images/000_btn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/last_log_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/main_window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/settings_exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/settings_include.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/settings_options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/manual/src/_images/dark/snapshotsdialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions doc/manual/src/_images/document-new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 366ef00

Please sign in to comment.