Commit graph

328 commits

Author SHA1 Message Date
Alexandre Vicenzi
fd0f23e022 Requirements 2020-09-19 20:02:33 +02:00
Alexandre Vicenzi
50558fa295 Try build actions 2020-09-19 19:55:21 +02:00
Alexandre Vicenzi
8af4d911d7 Test with newer Python 2020-09-19 19:40:16 +02:00
Alexandre Vicenzi
29ba07e61a Plugin as submodule 2020-09-19 19:36:08 +02:00
Alexandre Vicenzi
e7a0009a1d
Merge pull request #248 from saagit/none_plugins
Fix compatibility with Pelican 4.5.0 when PLUGINS is not set
2020-09-19 19:25:46 +02:00
saagit
c205163fd7 Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py
Pelican 4.5.0 changed the plugins mechanism and the default for
PLUGINS is now None.  The following type of construct is used in a
number of places in Flex:

    {% if 'tipue_search' in PLUGINS %}

If PLUGINS is not set in pelicanconf.py, the following exception will
be triggered under Pelican 4.5.0:

    TypeError: argument of type 'NoneType' is not iterable

The Pelican maintainers did not intend the examination of PLUGINS by
templates to be a stable API (per a discussion on IRC).  Per their
request, an enhancement request for a mechanism to do this has been
submitted here: https://github.com/getpelican/pelican/issues/2797

This commit changes the problematic constructs in Flex to be in the
style of:

    {% if PLUGINS and 'tipue_search' in PLUGINS %}

This allows Flex to work with Pelican 4.5.0 even if users do not
define PLUGINS.  Note that to use the new namespace plugins in Pelican
4.5.0, PLUGINS will have to be left at its default of None.

Resolves #245
2020-09-10 08:42:20 -07:00
Alexandre Vicenzi
b3c8dacd37
Merge pull request #246 from jedludlow/copyright
Place copyright year ahead of copyright name
2020-08-28 16:39:48 +02:00
Jed Ludlow
baf5a16a06 Place copyright year ahead of copyright name
Traditional placement is to have the year precede the name, so
modifying standard templates to match this.
2020-08-26 09:38:58 -06:00
Alexandre Vicenzi
0cc12a0c3c
Merge pull request #243 from saagit/update_google_fonts
Update Google fonts to remove unused weight and CSS API v2.
2020-08-26 10:12:54 +02:00
saagit
e0d18dc67c Update Google fonts to remove unused weight and CSS API v2.
The 300 weight of Source Code Pro is not used anywhere.  This change
also updates to using Google Fonts CSS API v2 and specifying
display=swap to avoid a "flash of invisible text".

Resolves #241
2020-08-25 16:16:34 -07:00
Loïc Penaud
0f0ea7e824
Add style to figure element (#225)
* Add style to figure element

* Rebuild
2020-05-12 17:51:27 +02:00
Sumner Evans
8d939f7f5e
Add Admonition styles (#230)
* Add Admonition styles

* Generic Admonition is now grey
2020-05-11 23:39:35 +02:00
Alexandre Vicenzi
52c33b2456
Merge pull request #228 from sumnerevans/twitch-social-icon-color
Added color for Twitch
2020-05-04 13:09:28 +02:00
Sumner Evans
ac34f08c1e
Added color for Twitch 2020-05-03 16:42:44 -06:00
Alexandre Vicenzi
9d672dba84 Update translations 2020-04-21 18:55:22 +02:00
Alexandre Vicenzi
fed45e0c6b Update messages.pot 2020-04-21 18:03:51 +02:00
Alexandre Vicenzi
db7f73bec2
Merge pull request #221 from sumnerevans/fix-post-stats-format-strings
Bug fix: Closes #220: Format strings need 's' after the name
2020-04-21 17:28:47 +02:00
Sumner Evans
7e66676ebe
Closes #220: Format strings need 's' after the name 2020-04-21 07:58:12 -06:00
Alexandre Vicenzi
fd08a83124 Ignore package-lock.json 2020-04-20 23:42:03 +02:00
Alexandre Vicenzi
9462fc96c5 Extract new messages 2020-04-20 23:40:21 +02:00
Alexandre Vicenzi
8e4a88edde Update docs 2020-04-20 23:38:29 +02:00
Alexandre Vicenzi
533bc1760e Fix identation and missing trans 2020-04-20 23:36:36 +02:00
Alexandre Vicenzi
6b87efa507 Rename files 2020-04-20 23:19:01 +02:00
Alexandre Vicenzi
1f7188db3b Compile latest changes 2020-04-20 23:19:01 +02:00
Alexandre Vicenzi
f9c202606a Update packages 2020-04-20 23:19:01 +02:00
Alexandre Vicenzi
9d5492d311
Merge pull request #219 from sumnerevans/auto-detect-tipue-search
Auto-detect Tipue Search plugin
2020-04-20 23:17:06 +02:00
Sumner Evans
bc855d825b
Check PLUGINS variable for tipue_search instead of using USE_TIPUE_SEARCH 2020-04-20 14:28:38 -06:00
Alexandre Vicenzi
31e56276ea
Merge pull request #213 from sumnerevans/support-dark-theme
Support dark theme
2020-04-20 22:24:45 +02:00
Sumner Evans
8b3811fc25
Add dark mode to list of features 2020-04-20 09:15:27 -06:00
Alexandre Vicenzi
6f73303f90
Merge pull request #215 from sumnerevans/fix-tipue-search
Added tipuesearch_content.js to base.html when tipuesearch is enabled
2020-04-20 10:11:38 +02:00
Alexandre Vicenzi
531bd8ad0b
Merge pull request #217 from sumnerevans/remove-extra-whitespace-in-nav
Strip whitespace from translated links in nav
2020-04-20 10:04:25 +02:00
Sumner Evans
caef42ff2f
Fix extraneous whitespace at the macro level 2020-04-17 13:52:12 -06:00
Sumner Evans
7ff8c7067b
Add Tipue Search to plugin list in README 2020-04-16 16:19:44 -06:00
Sumner Evans
582adec6a4
Greatly simplified all of the logic; moved the JS to a separate file 2020-04-16 15:54:36 -06:00
Sumner Evans
a18c421354
Made the switch text translateable 2020-04-16 13:48:24 -06:00
Sumner Evans
7bddebeff1
Closes #216: strip whitespace from translated links in nav 2020-04-16 12:05:11 -06:00
Sumner Evans
e854dcf9bb
Added tipue_search styles for dark mode 2020-04-16 11:56:11 -06:00
Sumner Evans
b4ee01e251
Added Isso dark mode styles 2020-04-16 11:07:03 -06:00
Sumner Evans
da942970cc
Fixed issue with styling admonitions after #207 2020-04-16 10:41:43 -06:00
Sumner Evans
0d047f7327
Address a few comments from from PR 2020-04-16 10:40:37 -06:00
Sumner Evans
ec1acb115a
Fixed some bugs with various settings combinations 2020-04-16 10:35:27 -06:00
Sumner Evans
904484e2b4
Added themeing options
Added THEME_COLOR, THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE, and THEME_COLOR_ENABLE_USER_OVERRIDE options
2020-04-16 10:35:27 -06:00
Sumner Evans
9b3495da5d
Moved all of the styles in to Flex from my website 2020-04-16 10:35:26 -06:00
Sumner Evans
0d56e19d6a
Default to monokai in dark theme and fixed defaulting mechanism in the JS 2020-04-16 10:35:26 -06:00
Sumner Evans
927306ddb9
Undo changes that are included in other PRs 2020-04-16 10:35:26 -06:00
Sumner Evans
02e1404e34
Make pygments style switching work when JS is off, but prefers-color-scheme is enabled 2020-04-16 10:35:26 -06:00
Sumner Evans
5955f45a30
Improve the theme detection logic 2020-04-16 10:35:26 -06:00
Sumner Evans
6816d4800b
Add a couple comments 2020-04-16 10:35:26 -06:00
Sumner Evans
91aa9016e7
Dark mode for Pygments 2020-04-16 10:35:25 -06:00
Sumner Evans
543ae58a37
Added support for dark mode detection 2020-04-16 10:35:25 -06:00