From bbd7a320006aaf9bef0c8e92333e2429b9f40c0e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 15 Sep 2026 17:03:23 +0300 Subject: [PATCH] Use pretty URLs and redirect old URLs --- _config.yml | 9 ++++++--- src/404.md | 1 + src/_data/faqs.yml | 6 +++--- src/_docs/audit.md | 1 + src/_docs/chaff.md | 1 + src/_docs/cleanerml.md | 3 ++- src/_docs/command-line-interface.md | 1 + src/_docs/contributing.md | 1 + src/_docs/cookie-manager.md | 1 + src/_docs/expert-mode.md | 1 + src/_docs/finding-files-to-delete.md | 1 + src/_docs/frequently-asked-questions.md | 1 + src/_docs/general-usage.md | 1 + src/_docs/install-on-linux.md | 1 + src/_docs/install-on-windows.md | 1 + src/_docs/preferences.md | 1 + src/_docs/running-from-source-code.md | 1 + src/_docs/shred-files-and-wipe-disks.md | 1 + src/_docs/testing.md | 1 + src/_docs/troubleshooting.md | 1 + src/_docs/variables.md | 1 + src/_docs/winapp2ini.md | 1 + src/_redirects | 11 +++++++++++ 23 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 src/_redirects diff --git a/_config.yml b/_config.yml index 8c6ff86..5d23da7 100644 --- a/_config.yml +++ b/_config.yml @@ -31,13 +31,12 @@ sections: # path (e.g. on GitHub pages) leave off the trailing slash, e.g. /my-project baseurl: '' -# Dates are not included in permalinks -permalink: none +permalink: pretty collections: docs: output: true - permalink: /:categories/:name:output_ext + permalink: /:categories/:name/ # Syntax highlighting highlighter: rouge @@ -64,6 +63,10 @@ source: src # Use the kramdown Markdown renderer markdown: kramdown +# Netlify preview rules +include: + - _redirects + plugins: - jekyll-last-modified-at # https://help.github.com/articles/redirects-on-github-pages/ diff --git a/src/404.md b/src/404.md index c41d64f..317b58a 100644 --- a/src/404.md +++ b/src/404.md @@ -1,6 +1,7 @@ --- layout: page title: Page Not Found +permalink: /404.html sitemap: false --- diff --git a/src/_data/faqs.yml b/src/_data/faqs.yml index 2312c14..d4e1ba8 100644 --- a/src/_data/faqs.yml +++ b/src/_data/faqs.yml @@ -68,7 +68,7 @@ main: default file system on Ubuntu is ext4 with `data=ordered` mode, which makes recovery unlikely. If the *wipe empty space* (formerly *wipe free space*) command was used on the same file system, the file probably cannot be deleted regardless of the type of file - system. See also [Shred files and wipe disks](/doc/shred-files-and-wipe-disks.html) for + system. See also [Shred files and wipe disks](/doc/shred-files-and-wipe-disks/) for more information. The chances of recovery decline as data is written to the drive and as time passes. Immediately the file is deleted in a normal way (in other words, if it is not overwritten), the full contents still exist and full recovery is stil possible. To @@ -87,7 +87,7 @@ main: files unrecoverable. This feature works by creating large, empty files (see [Shred files and wipe - disks](/doc/shred-files-and-wipe-disks.html) for more information). The duration to wipe + disks](/doc/shred-files-and-wipe-disks/) for more information). The duration to wipe empty space depends on the speed of the hardware and the free capacity, and it commonly takes more than five minutes. @@ -131,7 +131,7 @@ main: In the future, you may avoid this situation by disabling the BleachBit option **System - Free Disk Space**. Otherwise, do not interrupt BleachBit while it is working. - question: How many passes does BleachBit make for the overwrite file option (shredding file)? - answer: See [Shred files and wipe disks](/doc/shred-files-and-wipe-disks.html). + answer: See [Shred files and wipe disks](/doc/shred-files-and-wipe-disks/). - question: How do I see BleachBit in my own language on Microsoft Windows? answer: | There are a few ways to affect the language of the BleachBit user interface. diff --git a/src/_docs/audit.md b/src/_docs/audit.md index 022538b..6f7b4fa 100644 --- a/src/_docs/audit.md +++ b/src/_docs/audit.md @@ -5,6 +5,7 @@ subtitle: "Cleaning developer reference" nav_title: "Audit" category: dev date: 2018-05-12 15:38:24 +redirect_from: /dev/audit.html order: 2 --- diff --git a/src/_docs/chaff.md b/src/_docs/chaff.md index 4da65bc..016edec 100644 --- a/src/_docs/chaff.md +++ b/src/_docs/chaff.md @@ -5,6 +5,7 @@ subtitle: "Hide private files using decoy data" nav_title: "Chaff" category: doc date: 2019-08-14 20:45:26 +redirect_from: /doc/chaff.html order: 11 --- When you delete a file, traces can remain on your storage drive, and diff --git a/src/_docs/cleanerml.md b/src/_docs/cleanerml.md index 969c188..f389391 100644 --- a/src/_docs/cleanerml.md +++ b/src/_docs/cleanerml.md @@ -6,7 +6,8 @@ nav_title: "CleanerML Intro" category: cml date: 2015-09-25 00:01:00 redirect_from: - - doc/cleanerml + - /cml/cleanerml.html + - /doc/cleanerml.html order: 1 --- diff --git a/src/_docs/command-line-interface.md b/src/_docs/command-line-interface.md index cf374e7..0468d08 100644 --- a/src/_docs/command-line-interface.md +++ b/src/_docs/command-line-interface.md @@ -5,6 +5,7 @@ subtitle: "Usage and options" nav_title: "CLI" category: doc date: 2015-09-25 23:27:26 +redirect_from: /doc/command-line-interface.html order: 7 --- diff --git a/src/_docs/contributing.md b/src/_docs/contributing.md index 82ddb44..366a7d2 100644 --- a/src/_docs/contributing.md +++ b/src/_docs/contributing.md @@ -5,6 +5,7 @@ subtitle: "A guide for cleaner developers" nav_title: "Contributing" category: cml date: 2019-04-19 00:00:00 +redirect_from: /cml/contributing.html order: 4 --- diff --git a/src/_docs/cookie-manager.md b/src/_docs/cookie-manager.md index ecd74b8..5f0f0a9 100644 --- a/src/_docs/cookie-manager.md +++ b/src/_docs/cookie-manager.md @@ -5,6 +5,7 @@ subtitle: "Browser cookie management guide" nav_title: "Cookie Manager" category: doc date: 2026-03-18 09:47:00 +redirect_from: /doc/cookie-manager.html order: 5 faqs: - question: How do cookies show in BleachBit's preview and cleaning log? diff --git a/src/_docs/expert-mode.md b/src/_docs/expert-mode.md index d8c220b..fb44cfa 100644 --- a/src/_docs/expert-mode.md +++ b/src/_docs/expert-mode.md @@ -5,6 +5,7 @@ subtitle: "Safety guardrails and advanced features" nav_title: "Expert mode" category: doc date: 2026-04-29 12:01:00 +redirect_from: /doc/expert-mode.html order: 4 --- diff --git a/src/_docs/finding-files-to-delete.md b/src/_docs/finding-files-to-delete.md index bc6612d..692488e 100644 --- a/src/_docs/finding-files-to-delete.md +++ b/src/_docs/finding-files-to-delete.md @@ -5,6 +5,7 @@ subtitle: "A guide for CleanerML developers" nav_title: "Finding Files" category: cml date: 2026-02-10 00:00:00 +redirect_from: /cml/finding-files-to-delete.html order: 2 --- diff --git a/src/_docs/frequently-asked-questions.md b/src/_docs/frequently-asked-questions.md index 2bab555..3fc3edf 100644 --- a/src/_docs/frequently-asked-questions.md +++ b/src/_docs/frequently-asked-questions.md @@ -4,6 +4,7 @@ title: "Frequently asked questions" nav_title: "FAQ" category: doc date: 2015-09-25 23:30:16 +redirect_from: /doc/frequently-asked-questions.html order: 8 --- diff --git a/src/_docs/general-usage.md b/src/_docs/general-usage.md index 4189331..f9cfa2d 100644 --- a/src/_docs/general-usage.md +++ b/src/_docs/general-usage.md @@ -5,6 +5,7 @@ subtitle: "Getting started" nav_title: "Usage" category: doc date: 2015-09-25 23:25:52 +redirect_from: /doc/general-usage.html order: 6 --- diff --git a/src/_docs/install-on-linux.md b/src/_docs/install-on-linux.md index dbaa296..da3d79b 100644 --- a/src/_docs/install-on-linux.md +++ b/src/_docs/install-on-linux.md @@ -5,6 +5,7 @@ subtitle: "Step-by-step guide" nav_title: "Linux Install" category: doc date: 2015-09-30 20:37:20 +redirect_from: /doc/install-on-linux.html order: 2 --- diff --git a/src/_docs/install-on-windows.md b/src/_docs/install-on-windows.md index 3895659..a9ed396 100644 --- a/src/_docs/install-on-windows.md +++ b/src/_docs/install-on-windows.md @@ -5,6 +5,7 @@ subtitle: "Step-by-step guide" nav_title: "Windows Install" category: doc date: 2015-09-30 20:37:24 +redirect_from: /doc/install-on-windows.html order: 1 --- diff --git a/src/_docs/preferences.md b/src/_docs/preferences.md index b5c5bb0..1a53b9d 100644 --- a/src/_docs/preferences.md +++ b/src/_docs/preferences.md @@ -5,6 +5,7 @@ subtitle: "Settings and configuration" nav_title: "Preferences" category: doc date: 2015-09-25 23:17:25 +redirect_from: /doc/preferences.html order: 3 --- diff --git a/src/_docs/running-from-source-code.md b/src/_docs/running-from-source-code.md index e53473c..a8941ea 100644 --- a/src/_docs/running-from-source-code.md +++ b/src/_docs/running-from-source-code.md @@ -5,6 +5,7 @@ subtitle: "Developer setup guide" nav_title: "Source Code" category: dev date: 2015-09-25 23:40:58 +redirect_from: /dev/running-from-source-code.html order: 3 --- diff --git a/src/_docs/shred-files-and-wipe-disks.md b/src/_docs/shred-files-and-wipe-disks.md index 551c7c6..db6124a 100644 --- a/src/_docs/shred-files-and-wipe-disks.md +++ b/src/_docs/shred-files-and-wipe-disks.md @@ -4,6 +4,7 @@ title: "How to shred files and wipe disks" nav_title: "Shred Files" category: doc date: 2015-09-25 23:33:58 +redirect_from: /doc/shred-files-and-wipe-disks.html order: 9 --- diff --git a/src/_docs/testing.md b/src/_docs/testing.md index 712e82e..6d8038b 100644 --- a/src/_docs/testing.md +++ b/src/_docs/testing.md @@ -5,6 +5,7 @@ subtitle: "A guide for developers and QA testers" nav_title: "Testing" category: dev date: 2021-04-17 17:30:57 +redirect_from: /dev/testing.html order: 1 --- diff --git a/src/_docs/troubleshooting.md b/src/_docs/troubleshooting.md index 28be50b..f37c513 100644 --- a/src/_docs/troubleshooting.md +++ b/src/_docs/troubleshooting.md @@ -5,6 +5,7 @@ subtitle: "Fix common errors and problems" nav_title: "Troubleshooting" category: doc date: 2018-03-14 21:36:58 +redirect_from: /doc/troubleshooting.html order: 12 --- diff --git a/src/_docs/variables.md b/src/_docs/variables.md index 47fedca..1f00367 100644 --- a/src/_docs/variables.md +++ b/src/_docs/variables.md @@ -4,6 +4,7 @@ title: "CleanerML variables reference" nav_title: "Variables" category: cml date: 2019-04-19 00:00:00 +redirect_from: /cml/variables.html order: 3 --- diff --git a/src/_docs/winapp2ini.md b/src/_docs/winapp2ini.md index 6c9e1e6..eef6b2f 100644 --- a/src/_docs/winapp2ini.md +++ b/src/_docs/winapp2ini.md @@ -5,6 +5,7 @@ subtitle: "Extend BleachBit cleaning on Windows" nav_title: "Winapp2.ini" category: doc date: 2015-09-25 23:38:45 +redirect_from: /doc/winapp2ini.html order: 10 --- diff --git a/src/_redirects b/src/_redirects new file mode 100644 index 0000000..230319d --- /dev/null +++ b/src/_redirects @@ -0,0 +1,11 @@ +--- +--- +# Netlify serves foo.html for /foo/ even when foo/index.html exists +{%- for doc in site.docs %} +{{ doc.url }} {{ doc.url }}index.html 200! +{%- endfor %} +{%- for page in site.pages %} + {%- if page.redirect %} +{{ page.redirect.from }} {{ page.redirect.to | remove_first: site.url }} 301! + {%- endif %} +{%- endfor %}