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

@ -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,8 +53,6 @@ markdown_extensions:
- toc: - toc:
permalink: true permalink: true
nav: nav:
- Home: index.md - Home: index.md
- Manual: - Manual:

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 %}