From c21a015c5830313b69d1e1539b28cf6cdec57474 Mon Sep 17 00:00:00 2001 From: Brutus Date: Thu, 2 Feb 2023 09:56:29 +0100 Subject: [PATCH] :rotating_light: format with updated linters --- authorship/authorship/__init__.py | 2 +- source/_static/js/custom.js | 8 ++++---- source/guide_bludit.rst | 2 +- source/guide_dokuwiki.rst | 16 ++++++++-------- source/guide_mumble.rst | 2 +- source/guide_ntfy.rst | 4 ++-- source/guide_octobercms.rst | 8 ++++---- source/guide_sulu.rst | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/authorship/authorship/__init__.py b/authorship/authorship/__init__.py index 0e913948..2e2b4db9 100644 --- a/authorship/authorship/__init__.py +++ b/authorship/authorship/__init__.py @@ -207,7 +207,7 @@ def process_authorlists(app, doctree, fromdocname): guides_list += link_entry # I can't figure out a way to get the link and title from a page name.. - link = '/' + guide + '.html' + link = "/" + guide + ".html" title = guide.partition("_")[2].title() link_wrapper = addnodes.compact_paragraph() diff --git a/source/_static/js/custom.js b/source/_static/js/custom.js index baf5a5b3..6f7a0a61 100644 --- a/source/_static/js/custom.js +++ b/source/_static/js/custom.js @@ -28,10 +28,10 @@ function circleRatio() { function autoLinks(match, link, offset, string) { const reMail = new RegExp( - /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i + /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i, ); const reURL = new RegExp( - /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi + /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi, ); if (link.match(reMail)) { link = `${link}`; @@ -44,7 +44,7 @@ function autoLinks(match, link, offset, string) { function formatAuthor(ele) { const text = ele.html().trim(); const idx = text.search( - /[^A-Za-z\sÂÀÅÃÄâàáåãäÇçćčđÉÊÈËéêèëÓÔÒÕØÖóôòõöŠšßÚÛÙÜúûùüÝŸýÿŽž]/ + /[^A-Za-z\sÂÀÅÃÄâàáåãäÇçćčđÉÊÈËéêèëÓÔÒÕØÖóôòõöŠšßÚÛÙÜúûùüÝŸýÿŽž]/, ); const author = $(''); const extra = $(""); @@ -63,7 +63,7 @@ function formatAuthor(ele) { function addTagListToToc() { let toc_tags = $( - '
  • Tags
  • ' + '
  • Tags
  • ', ); let toc_01 = $('[aria-label="main navigation"] > ul:nth-child(6) > li:eq(0)'); toc_01.after(toc_tags); diff --git a/source/guide_bludit.rst b/source/guide_bludit.rst index 02696f76..6afb5524 100644 --- a/source/guide_bludit.rst +++ b/source/guide_bludit.rst @@ -110,7 +110,7 @@ Updates .. note:: Check the update feed_ regularly to stay informed about the newest version. -Follow the Update instructions in the Bludit documentation__. +Follow the Update instructions in the Bludit documentation__. .. note:: The files in the directory ``/bl-content`` should not be deleted. There the user accounts and other important stuff is stored. diff --git a/source/guide_dokuwiki.rst b/source/guide_dokuwiki.rst index a76e6304..a538bb93 100644 --- a/source/guide_dokuwiki.rst +++ b/source/guide_dokuwiki.rst @@ -93,8 +93,8 @@ Finally you have to delete the ``install.php``: [isabell@stardust ~]$ cd /var/www/virtual/$USER/html/ [isabell@stardust html]$ rm install.php - [isabell@stardust html]$ - + [isabell@stardust html]$ + Tuning ====== @@ -108,7 +108,7 @@ Nice URLs aka URL-Rewriting To change default behaviour and rewrite ``https://isabell.uber.space/doku.php?id=dokuwiki-on-uberspace`` to ``https://isabell.uber.space/dokuwiki-on-uberspace`` you need to enable URL rewriting in /var/www/virtual/$USER/html/conf/local.php/ file by appending: :: - + $conf['userewrite'] = 1; $conf['useslash'] = 1; @@ -117,20 +117,20 @@ This can also be done in Configuration Settings via Admin page. Next step is to rename ``/var/www/virtual/$USER/html/.htaccess.dist`` to ``/var/www/virtual/$USER/html/.htaccess`` and edit that file. First uncomment: :: - + #RewriteEngine On by deleting the # character at the beginning of the line and insert: :: - + RewriteBase / between ``RewriteEngine On`` and first ``RewriteRule`` directive. Finally uncomment all of the following rewrite rules and save changes. Before: -:: +:: ## Uncomment these rules if you want to have nice URLs using ## $conf['userewrite'] = 1 - not needed for rewrite mode 2 @@ -149,7 +149,7 @@ Before: After: :: - + ## Uncomment these rules if you want to have nice URLs using ## $conf['userewrite'] = 1 - not needed for rewrite mode 2 RewriteEngine on @@ -167,7 +167,7 @@ After: RewriteRule ^index.php$ doku.php # -If something goes wrong, you can set the two values to 0 and delete the ``.htaccess`` file. +If something goes wrong, you can set the two values to 0 and delete the ``.htaccess`` file. Handling Special Characters diff --git a/source/guide_mumble.rst b/source/guide_mumble.rst index 0f6beee0..a0270129 100644 --- a/source/guide_mumble.rst +++ b/source/guide_mumble.rst @@ -170,7 +170,7 @@ If there is a new version, backup your mumble folder: [isabell@stardust ~]$ cp -rp mumble/ mumble-backup/ [isabell@stardust ~]$ ls -la | grep -i mumble-backup drwxrwxr-x. 4 isabell isabell 167 Dec 6 20:16 mumble-backup - [isabell@stardust ~]$ + [isabell@stardust ~]$ Repeat the Installation_ steps, and finally execute: diff --git a/source/guide_ntfy.rst b/source/guide_ntfy.rst index 537c3453..e246925f 100644 --- a/source/guide_ntfy.rst +++ b/source/guide_ntfy.rst @@ -16,7 +16,7 @@ ntfy .. tag_list:: -ntfy_ (pronounce: notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without signup, cost or setup. +ntfy_ (pronounce: notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without signup, cost or setup. ---- @@ -55,7 +55,7 @@ Create a configuration file Use your favourite editor to create ``~/ntfy/server.yml`` with the following content. Make sure to replace the ``base-url`` and with your own. -.. code-block:: +.. code-block:: :emphasize-lines: 1,3,5,8 base-url: https://isabell.uber.space diff --git a/source/guide_octobercms.rst b/source/guide_octobercms.rst index 6e086893..52afddf1 100644 --- a/source/guide_octobercms.rst +++ b/source/guide_octobercms.rst @@ -67,9 +67,9 @@ We will install October using composer. First, make sure that your DocumentRoot .. code-block:: console [isabell@stardust ~]$ rm html/nocontent.html - [isabell@stardust ~]$ - -Initialize the composer project in your DocumentRoot: + [isabell@stardust ~]$ + +Initialize the composer project in your DocumentRoot: .. code-block:: console @@ -77,7 +77,7 @@ Initialize the composer project in your DocumentRoot: [...] [isabell@stardust ~]$ -Change to your DocumentRoot and then start the installer: +Change to your DocumentRoot and then start the installer: .. code-block:: console diff --git a/source/guide_sulu.rst b/source/guide_sulu.rst index 569e9eb1..672c1846 100644 --- a/source/guide_sulu.rst +++ b/source/guide_sulu.rst @@ -72,9 +72,9 @@ Since Sulu CMS uses the subdirectory ``public/`` as document root of your websit Created project in /var/www/virtual/isabell/sulucms […] The recipe for this package contains some Docker configuration. - + This may create/update docker-compose.yml or update Dockerfile (if it exists). - + Do you want to include Docker configuration from recipes? [y] Yes [n] No @@ -91,7 +91,7 @@ Remove your empty :manual:`DocumentRoot ` and create a new sym [isabell@stardust ~]$ cd /var/www/virtual/$USER/ [isabell@stardust isabell]$ rm -f html/nocontent.html; rmdir html [isabell@stardust isabell]$ ln -s sulucms/public html - [isabell@stardust isabell]$ + [isabell@stardust isabell]$ Configuration