Skip to content

Commit

Permalink
🚨 format with updated linters
Browse files Browse the repository at this point in the history
  • Loading branch information
brutus committed Feb 2, 2023
1 parent d89a012 commit c21a015
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion authorship/authorship/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<a href="mailto:${link}">${link}</a>`;
Expand All @@ -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 = $('<span class="author"></span>');
const extra = $("<small></small>");
Expand All @@ -63,7 +63,7 @@ function formatAuthor(ele) {

function addTagListToToc() {
let toc_tags = $(
'<li class="toctree-l1"><a class="reference internal" href="/tags/">Tags</a></li>'
'<li class="toctree-l1"><a class="reference internal" href="/tags/">Tags</a></li>',
);
let toc_01 = $('[aria-label="main navigation"] > ul:nth-child(6) > li:eq(0)');
toc_01.after(toc_tags);
Expand Down
2 changes: 1 addition & 1 deletion source/guide_bludit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
16 changes: 8 additions & 8 deletions source/guide_dokuwiki.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
======
Expand All @@ -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;

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/guide_mumble.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions source/guide_ntfy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

----

Expand Down Expand Up @@ -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 <username> with your own.

.. code-block::
.. code-block::
:emphasize-lines: 1,3,5,8
base-url: https://isabell.uber.space
Expand Down
8 changes: 4 additions & 4 deletions source/guide_octobercms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ 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
[isabell@stardust ~]$ composer create-project october/october /var/www/virtual/$USER/html
[...]
[isabell@stardust ~]$
Change to your DocumentRoot and then start the installer:
Change to your DocumentRoot and then start the installer:

.. code-block:: console
Expand Down
6 changes: 3 additions & 3 deletions source/guide_sulu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -91,7 +91,7 @@ Remove your empty :manual:`DocumentRoot <web-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
Expand Down

0 comments on commit c21a015

Please sign in to comment.