Merge pull request #111 from kees-z/feature/custom-404

Added custom 404 page
This commit is contained in:
kees-z 2024-04-30 14:49:39 +02:00 committed by GitHub
commit 1005de0f0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 51 additions and 49 deletions

View File

@ -16,4 +16,4 @@ mkdocs:
# Optionally declare the Python requirements required to build your docs # Optionally declare the Python requirements required to build your docs
python: python:
install: install:
- requirements: pip-requirements.txt - requirements: pip-requirements.txt

View File

@ -1,51 +1,49 @@
# Project information # Project information
site_name: "Duplicati 2 User's Manual" site_name: "Duplicati 2 User's Manual"
site_description: 'Documentation for Duplicati 2' site_description: "Documentation for Duplicati 2"
site_author: 'K. Zaaijer' site_author: "K. Zaaijer"
site_url: 'https://www.duplicati.com/' site_url: "https://duplicati.com/"
# Repository # Repository
repo_name: 'kees-z/DuplicatiDocs' repo_name: "kees-z/DuplicatiDocs"
repo_url: 'https://github.com/kees-z/DuplicatiDocs/' repo_url: "https://github.com/kees-z/DuplicatiDocs/"
# Copyright # Copyright
copyright: 'Copyright © 2016 - 2023 The Duplicati Team' copyright: "Copyright © 2016 - 2023 The Duplicati Team"
# Configuration # Configuration
theme: theme:
name: 'material' name: "material"
language: 'en' language: "en"
custom_dir: overrides
palette: palette:
primary: 'blue' primary: "blue"
accent: 'blue' accent: "blue"
font: font:
text: 'Roboto' text: "Roboto"
code: 'Roboto Mono' code: "Roboto Mono"
logo: 'duplicatilogo.png' logo: "duplicatilogo.png"
favicon: 'favicon.ico' favicon: "favicon.ico"
feature: feature:
tabs: false tabs: false
# Customization # Customization
extra: extra:
social: social:
- type: 'edge' - type: "edge"
link: 'https://www.duplicati.com' link: "https://duplicati.com"
icon: 'fontawesome/regular/newspaper' icon: "fontawesome/regular/newspaper"
- type: 'comment' - type: "comment"
link: 'https://forum.duplicati.com' link: "https://forum.duplicati.com"
icon: 'fontawesome/regular/comment' icon: "fontawesome/regular/comment"
- type: 'github' - type: "github"
link: 'https://github.com/duplicati/duplicati' link: "https://github.com/duplicati/duplicati"
icon: 'fontawesome/brands/github' icon: "fontawesome/brands/github"
# Google Analytics # Google Analytics
google_analytics: google_analytics:
- 'UA-XXXXXXXX-X' - "UA-XXXXXXXX-X"
- 'auto' - "auto"
# Extensions # Extensions
markdown_extensions: markdown_extensions:
@ -55,24 +53,22 @@ markdown_extensions:
- toc: - toc:
permalink: true permalink: true
nav: nav:
- Home: index.md - Home: index.md
- Manual: - Manual:
- Introduction: 01-introduction.md - Introduction: 01-introduction.md
- Installation: 02-installation.md - Installation: 02-installation.md
- Using the Graphical User Interface: "03-using-the-graphical-user-interface.md" - Using the Graphical User Interface: "03-using-the-graphical-user-interface.md"
- Using Duplicati from the Command Line: "04-using-duplicati-from-the-command-line.md" - Using Duplicati from the Command Line: "04-using-duplicati-from-the-command-line.md"
- Storage Providers: "05-storage-providers.md" - Storage Providers: "05-storage-providers.md"
- Advanced Options: "06-advanced-options.md" - Advanced Options: "06-advanced-options.md"
- Other Command Line Utilities: "07-other-command-line-utilities.md" - Other Command Line Utilities: "07-other-command-line-utilities.md"
- Disaster Recovery: "08-disaster-recovery.md" - Disaster Recovery: "08-disaster-recovery.md"
- Articles: - Articles:
- "How the Backup Process Works": "appendix-a-how-the-backup-process-works.md" - "How the Backup Process Works": "appendix-a-how-the-backup-process-works.md"
- "How the Restore Process Works": "appendix-b-how-the-restore-process-works.md" - "How the Restore Process Works": "appendix-b-how-the-restore-process-works.md"
- "Choosing Sizes in Duplicati": "appendix-c-choosing-sizes-in-duplicati.md" - "Choosing Sizes in Duplicati": "appendix-c-choosing-sizes-in-duplicati.md"
- "Filters": "appendix-d-filters.md" - "Filters": "appendix-d-filters.md"
- "How We Get Along With OAuth": "appendix-e-how-we-get-along-with-oauth.md" - "How We Get Along With OAuth": "appendix-e-how-we-get-along-with-oauth.md"
- "Example Scripts": "appendix-g-example-scripts.md" - "Example Scripts": "appendix-g-example-scripts.md"
- "License Agreement": "appendix-f-license-agreement.md" - "License Agreement": "appendix-f-license-agreement.md"

6
overrides/404.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "main.html" %}
<!-- Content -->
{% block content %}
<h1>404 - Page not found</h1>
{% endblock %}