Commit graph

778 commits

Author SHA1 Message Date
Sören Weber
5c667b3d07
code highligher: switch to standard hugo highlighter #32
Since a while, Hugo has its own mechanism for code highlightning.

We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files.

This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results.

This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information.

Another advantage is the huge list of supported languages which by far exceeds our current list.

On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
2021-07-26 11:50:34 +02:00
Sören Weber
6fb5852643
maintenance: upgrade jquery to 3.6.0 #30
Because of a jquery security vulnerability, we are upgrading to the latest version 3.6.0

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

Depending on the site content, there may be issues with self-closing tags that are allowed to have content like `div` or `span`. See https://jquery.com/upgrade-guide/3.5/
2021-07-25 22:33:18 +02:00
Sören Weber
541a634f6e
theme: adjust copy-to-clipboard #29
Copy to clipboard has a lot of smaller issues:

- contrast for inline code is bad in notice boxes
- bordering the icon does not work well with bordering of inline code
- hover color on inline code icon is blurred
- hover color on block code is statically set to link color of standard theme

And related to that:

- tooltip misses outline border, especially when displayed over dark background (like block code)
- inline code font size is sized by factor of parent font size, which is a hassle if you want to replicate the size for other elements
2021-07-25 22:09:45 +02:00
Sören Weber
798ae66da8
theme: adjust blockquote contrast #27
Make blockquote bar background transparent for nicer visual in notice box
2021-07-25 13:27:06 +02:00
Sören Weber
919c826f8c
attachments: align style with notice #28 2021-07-17 11:59:27 +02:00
Sören Weber
565cfbe03d
notice: align styles with attachments #28 2021-07-17 11:59:26 +02:00
Sören Weber
a9a081903a
expand: make expander more visible #24 2021-07-16 23:07:15 +02:00
Sören Weber
f66e1bf576
notice: increased contrast for box labels #19 2021-07-16 21:19:23 +02:00
Sören Weber
90c4fffe02
notice: fix contrast issues #19 2021-07-16 20:40:30 +02:00
Sören Weber
7564c6a5d6
notice: support i18n for box labels #16 2021-07-16 20:16:10 +02:00
Sören Weber
c718115da0
notice: make restyling of notice boxes more robust #20 2021-07-16 20:00:21 +02:00
Sören Weber
edbebe2ff3
notice: use distinct icons for notice box type #17 2021-07-16 19:55:23 +02:00
Sören Weber
510cd0b99c
notice: align box colors to common standards #18 2021-07-16 19:50:47 +02:00
Sören Weber
a0084ecf96
notice: support multiple blocks in one box #15 2021-07-16 19:48:48 +02:00
Sören Weber
1b06d27608
pan and zoom for mermaid graphs #9 2021-07-02 23:01:38 +02:00
Sören Weber
8a53387a81
upgrade mermaid to 8.10.2 and relocate #7 2021-07-02 22:24:44 +02:00
Sören Weber
6b7779dac5
merge theme js scripts into one file and fix mermaid init #5 2021-07-02 21:58:16 +02:00
Sören Weber
b52a263979
Only highlight text in HTML elements #10 2021-07-02 17:53:07 +02:00
Sören Weber
aad4bf26e1
Change mermaid initialization to support code fences #6 2021-07-02 17:38:58 +02:00
Sören Weber
146965c497
Reworking screenshots after rebranding 2021-07-01 16:25:08 +02:00
Sören Weber
e8340249df
Docs adjustments #1 2021-07-01 14:35:27 +02:00
Sören Weber
82bdb24f72
New logo #1 2021-07-01 13:35:12 +02:00
Sören Weber
4137b5d2c5 Iconic relearn color theme 2021-06-30 23:15:51 +02:00
Sören Weber
c108d677b4 Rebranding to new theme name
- Rename theme from "Learn" to "Relearn"
- also change URLs
- remove old references
- more removal of french and chinese
2021-06-30 14:56:06 +02:00
Sandro Gauci
d198cbe65f
fix potential XSS in search (#492)
mostly it looks like a self-XSS but still good to fix
2021-04-01 00:48:33 +01:00
Helder Pereira
f5f91e39fa
Fix TOC indentation (#479) 2021-03-16 17:28:19 +00:00
Swen Wenzel
0b5bb6e7b3
Implement tab views (#386)
Tab views from @swenzel
2021-03-16 17:21:57 +00:00
mirisbowring
6cfd61e0f6
Navigation home option (#381)
* enabled mermaid by default

* implemented logic to use internal oder cdn mermaid

* added english documentation

* added french translation for the mermaid options

* Removed useless test print

* Hugo does not use upper case letters in params

* fixed false sample link

* improved mermaid pages

* fixed always load mermaid if no frontmatter specified

* applied 3 new params to default config

* Implemented Home Button logic

* Applied default style

* applied same landingpage ref to logo partials

* added sample image, how the button will looks like

* added en documentation on how to configure the button

* translated home button configuration to french via deepl

* applied home button style to theme variants

* set button disabled by default

* fixed mermaid samples

* removed obsolete css files

* changed default version of mermaid cdn

* renamed mermaidURL to customMermaidURL and removed css link

* improved mermaid configuration description

Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
2020-10-21 17:53:27 +01:00
Sören Weber
87ada591c5 Distinguish links from content on printout 2020-10-05 16:14:49 +02:00
Sören Weber
388439c321 Rework header and footer for printing
All changes only apply to printing:
- Remove stickiness from header to avoid it been printed on every page
- Print breadcrumbs to header regardless of width
- Header and footer are now divided by a horizontal line from content
- Hamburger menu, toc button and github button/text are now hidden from header
- if toc is displayed on hover in screen mode, hide it if switched to printing
2020-10-05 15:10:14 +02:00
Sören Weber
b713e50140 Remove margin between content and arrows
in print this will add additional ending space and may cause
to add unnecessary empty pages at the end

it also does not provide real value in screen mode
2020-10-05 12:22:23 +02:00
Sören Weber
1cad4cc2f6 Remove navigation arrows from print 2020-10-05 12:19:52 +02:00
mirisbowring
023fe7ef2b
Customize mermaid module (#362)
* enabled mermaid by default

* implemented logic to use internal oder cdn mermaid

* added english documentation

* added french translation for the mermaid options

* Removed useless test print

* Hugo does not use upper case letters in params

* fixed false sample link

* improved mermaid pages

* fixed always load mermaid if no frontmatter specified

* fixed mermaid samples

* removed obsolete css files

* changed default version of mermaid cdn

* renamed mermaidURL to customMermaidURL and removed css link

* improved mermaid configuration description

Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
2020-09-11 14:57:25 +01:00
Adam Snyder
21a3f77b14
Remove code that adjusts navigation margin (#419) 2020-09-10 17:21:20 +01:00
Susan Potter
699c9fdf9f
Upgrade mermaid-js/mermaid @ 0918b97 (v8.8.0) (#443)
* Upgrade mermaid-js/mermaid @ 0918b97

* Update exampleSite with new mermaid graph (stateDiagram-v2) example

* Update content of mermaid.js with officially distributed v8.8.0 minified version
2020-09-10 17:12:32 +01:00
Nina Zakharenko
704648b6a7 Make copy to clipboard button lighter color, hover matches links 2020-09-10 15:10:56 +01:00
Matthew Taylor
8349d619a5 Apply updated highlight.js 10.0.3 (a4b1bd2d) 2020-06-01 14:59:19 +01:00
Jared Stehler
54b373f350 fix null pointer when no params on image url 2020-06-01 13:00:37 +01:00
Jian
3ea5bca755 Added flag to turn off image featherlight 2020-02-01 22:58:17 +00:00
ImgBotApp
bed0a6c0d0 [ImgBot] Optimize images
*Total -- 2,430.13kb -> 2,350.51kb (3.28%)

/exampleSite/static/images/showcase/inteliver_docs.png -- 108.40kb -> 78.86kb (27.25%)
/static/fonts/Novecentosanswide-Normal-webfont.svg -- 100.88kb -> 96.30kb (4.54%)
/static/fonts/Novecentosanswide-UltraLight-webfont.svg -- 93.99kb -> 89.81kb (4.44%)
/static/webfonts/fa-regular-400.svg -- 136.55kb -> 132.62kb (2.88%)
/static/webfonts/fa-solid-900.svg -- 775.44kb -> 753.61kb (2.82%)
/static/fonts/Work_Sans_500.svg -- 54.16kb -> 53.15kb (1.88%)
/static/fonts/Work_Sans_300.svg -- 54.52kb -> 53.50kb (1.87%)
/static/fonts/Work_Sans_200.svg -- 54.57kb -> 53.55kb (1.87%)
/static/fonts/Inconsolata.svg -- 61.54kb -> 60.54kb (1.63%)
/static/webfonts/fa-brands-400.svg -- 732.17kb -> 722.07kb (1.38%)
/exampleSite/static/fonts/monogramos-webfont.svg -- 257.41kb -> 256.00kb (0.55%)
/static/images/clippy.svg -- 0.50kb -> 0.50kb (0.2%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-02-01 22:50:45 +00:00
Fritz Michael Gschwantner
15f890999f fix select option color in Chrome 2020-02-01 22:41:47 +00:00
Christian Oliff
c8b5c2e176
change to minified autocomplete for improved performance
from:  https://github.com/Pixabay/JavaScript-autoComplete/blob/master/auto-complete.min.js
2019-08-12 10:31:28 +09:00
Christian Oliff
3c4599428e Delete html5shiv-printshiv.min.js 2019-08-12 01:03:44 +01:00
Matthew Taylor
258877709c Remove oudated versions of jquery & modernizr libraries 2019-04-16 18:47:14 +01:00
ozobi
18212e6759 Update search.js
fixed indent
2019-04-01 22:31:07 +01:00
ozobi
c5033d3ee6 update js
highlightJS -> https://highlightjs.org/download/ => update with desired languages, default: https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.14.2/highlight.min.js
modernizr -> https://modernizr.com/download/?csstransforms3d-domprefixes-prefixes-setclasses-shiv-testallprops-testprop-teststyles
lunrJS -> https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.5/lunr.min.js
clipboard -> https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js
jquery -> https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
featherlight -> https://cdnjs.cloudflare.com/ajax/libs/featherlight/1.7.13/featherlight.min.js
search.js -> updated for lunrJS 2.3.5
learn.js -> updated for clipboard
2019-04-01 22:31:07 +01:00
ozobi
2463671e20 Update css
Add highlight.js theme
Update theme to match highlight.js theme
Update featherlight
2019-04-01 22:31:07 +01:00
Matthew Taylor
e7a190392a Merge branch 'master' of https://github.com/pdelaby/hugo-theme-learn into pdelaby-master 2019-03-25 21:01:40 +00:00
ImgBotApp
26748c29e9 [ImgBot] Optimize images
*Total -- 2,545.56kb -> 1,758.74kb (30.91%)

/static/images/favicon.png -- 1.22kb -> 0.59kb (51.48%)
/exampleSite/content/basics/installation/images/chapter.png -- 85.71kb -> 46.66kb (45.56%)
/exampleSite/content/cont/pages/images/pages-chapter.png -- 243.33kb -> 152.42kb (37.36%)
/exampleSite/content/basics/style-customization/images/red-variant.png -- 380.82kb -> 239.39kb (37.14%)
/exampleSite/content/basics/style-customization/images/blue-variant.png -- 380.01kb -> 238.93kb (37.13%)
/exampleSite/content/basics/style-customization/images/green-variant.png -- 381.74kb -> 240.20kb (37.08%)
/exampleSite/content/cont/pages/images/pages-default.png -- 310.79kb -> 196.47kb (36.78%)
/exampleSite/static/images/showcase/tat.png -- 405.21kb -> 302.69kb (25.3%)
/static/images/gopher-404.jpg -- 215.36kb -> 201.42kb (6.47%)
/images/tn.png -- 141.37kb -> 139.98kb (0.99%)
2019-03-15 16:47:53 +00:00
Massimeddu Cireddu
426ad13f85 Update hugo-learn.js 2019-03-15 16:03:59 +00:00
Massimeddu Cireddu
16782b2425 Render the ```mermaid blocks into graphs 2019-03-15 16:03:59 +00:00
Ryan Nixon
ef2ab7ad8a
Preventing left/right arrow key navigation in textareas 2019-02-15 10:11:16 -08:00
Matthew Taylor
ed760baf3f
Merge pull request #218 from matalo33/fa-561
Upgrade fontawesome to 5.6.3
2018-12-23 19:03:55 +00:00
Mathieu Cornic
43d05a81ac
Merge pull request #208 from coliff/patch-3
Update html5shiv-printshiv.min.js
2018-12-22 17:20:38 +01:00
Mathieu Cornic
56ff68d245
Merge pull request #211 from coliff/patch-4
remove whitespace from SVG = smaller filesize
2018-12-22 17:13:48 +01:00
Shelane French
d03bc79a78
prevents left and right keydown in input fields
If input field is in focus, keydown event to trigger navigation change should
not fire. User should expect cursor to stay in input field when using arrow keys.
2018-12-20 19:22:04 -08:00
Matthew Taylor
4d2977e57b Upgrade fontawesome to 5.6.3 2018-12-21 02:04:37 +00:00
Matthew Taylor
2bc33bc997 Use correct input type for search 2018-12-21 01:35:42 +00:00
Christian Oliff
9b621d36f7
remove whitespace from SVG = smaller filesize 2018-12-18 23:09:35 +09:00
Christian Oliff
fdaf35b72c
Update html5shiv-printshiv.min.js
Update to final version:
https://github.com/aFarkas/html5shiv/blob/master/dist/html5shiv-printshiv.min.js
2018-12-14 00:11:03 +09:00
Massimo Cireddu
c168919399
This close #198 2018-12-03 17:40:21 +01:00
Delaby Pierre
5f53dfaa15 Add documentation an theme variants 2018-11-29 09:34:55 +01:00
Matthew Taylor
2bed235a91
Merge pull request #167 from lloydbenson/master
remove source map metadata since .map is not included in the theme to…
2018-11-01 19:53:27 -04:00
Delaby Pierre
79a9777e9a Displays tags on single (using header)
Display tags list when clicking on tag
2018-10-16 12:08:58 +02:00
John.Allen2
e92b794700 xss fix 2018-10-11 08:47:20 -05:00
Lloyd Benson
92d8204121 remove source map metadata since .map is not included in the theme to fix firefox 404s 2018-10-01 13:36:06 -05:00
Mathieu Cornic
707af40051 feat: update font-awesome to 5.2.0 2018-08-10 11:17:47 +02:00
Matthew Taylor
cca7fdeeb0 Modify fontawesome selectors for v5.x 2018-02-19 16:33:30 +00:00
Matthew Taylor
ddb8d4c5aa Update Font Awesome to 5.0.6 2018-02-19 16:33:30 +00:00
Mathieu Cornic
d9b99afc39
Merge pull request #114 from mdavids/patch-3
Issue #111 for theme-green.css
2018-01-23 18:07:25 +01:00
Mathieu Cornic
18dccb5b59
Merge pull request #113 from mdavids/patch-2
Issue #111 for theme-red.css
2018-01-23 18:07:16 +01:00
Mathieu Cornic
d90e6e4a72
Merge pull request #112 from mdavids/patch-1
Issue #111 for theme-blue.css
2018-01-23 18:06:55 +01:00
Alex Vargas Benamburg
d67055469d fix: no wrap images that already wrapped 2018-01-22 23:33:14 -06:00
Marco Davids
890e2cf0ea
Issue #111 for theme-green.css 2018-01-22 22:37:25 +01:00
Marco Davids
2b28b11bd0
Issue #111 for theme-red.css 2018-01-22 22:35:58 +01:00
Marco Davids
eb18988805
Issue #111 for theme-blue.css 2018-01-22 22:34:35 +01:00
matcornic
6562adeb7b fix #83 no Title and Edit this page text when on mobile + fixed top bar width pbm on resize by switching to sticky.js instead of sticky-kit 2017-11-23 19:46:56 +01:00
kamar535
377f63e9b0 Don't add class highlight to footnote links 2017-11-23 16:16:14 +01:00
Ryan McGuire
ff5ef7c020 Replace horsey with Pixabay's autocomplete (#75) 2017-09-28 18:47:26 +02:00
matcornic
52e897dcb9 changed defaults + scroll with offset 2017-08-20 23:43:49 +02:00
matcornic
c1d1d7a2c4 Add variant theme rule for anchors 2017-08-20 23:43:48 +02:00
matcornic
88f55b81ca feat: add red and green variant themes 2017-08-20 23:43:48 +02:00
matcornic
1df25a3f06 feat: slight changes to blue theme 2017-08-20 23:43:48 +02:00
matcornic
7ca4b0c7ad feat: add theme variant system + add blue variant 2017-08-20 23:43:48 +02:00
matcornic
eb60debba2 feat: add 'more' section in left menu 2017-08-20 23:43:47 +02:00
matcornic
389b9858a4 feat(attachments): rename styles with colors + delete red style + add grey style 2017-08-20 23:43:47 +02:00
matcornic
3e61961bfa feat: add children shortcode 2017-08-20 23:43:47 +02:00
matcornic
951e8fb40e feat: add shortcode for attachments 2017-08-20 23:43:47 +02:00
matcornic
da208441c0 feat: add sticky bar with smooth scroll 2017-08-20 23:43:47 +02:00
matcornic
2294a54b36 fixed scrollbar in left menu 2017-08-20 23:43:46 +02:00
matcornic
b39d9528ab Update font-awesome 2017-08-20 23:43:46 +02:00
matcornic
157e3ac512 feat: add full i18n. Select desired language in the site automatically 2017-08-20 23:43:46 +02:00
matcornic
2b03e2568e feat: mermaid #53 + archetypes + move doc + expand 2017-08-20 23:43:45 +02:00
matcornic
b2ac8298bf feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
Mathieu Cornic
aacdba800a Merge pull request #46 from lfalin/anchor-fix
Fix anchor scrolling that hides behind top nav bar
2017-05-29 19:43:21 +02:00
lfalin
0e61c86a9f Fix anchor scrolling that hides behind top nav bar 2017-05-27 18:27:37 -06:00
lfalin
c68dda185e Fix sticky header jumpiness (see: https://github.com/leafo/sticky-kit/wiki/Troubleshooting) 2017-05-25 22:06:02 -06:00
Thibaut Rousseau
67d9cb6564 feat: Change the default code color 2017-05-16 11:53:01 +02:00
matcornic
797ac73ff9 fixes #40 2017-04-23 12:35:11 +02:00
Rousseau Thibaut
ac8edeb48a feat: handle inline images 2017-01-27 16:37:22 +01:00
Rousseau Thibaut
8cd2705ceb feat: style Hugo figure shortcode 2017-01-27 16:12:23 +01:00
matcornic
31bb6502e4 fix #23 : h5 font size to rem 2016-11-24 20:43:37 +01:00
matcornic
0fcd28a412 fix #20 : disable spacer for sticky-bar 2016-10-27 23:19:29 +02:00
Leclerc Gwendal
656a8b391f fix: add baseUrl to lunr suggestions href 2016-10-26 11:09:28 +02:00
Leclerc Gwendal
4218d1a27d feat: extract search out of header + use baseurl to search json index + add a step to explain how to use lunr-hugo + update perfect-scrollbar 2016-10-25 20:26:19 +02:00
Leclerc Gwendal
363bb68e42 feat: configure lunr, extract inline javascript in search.js and fix horsey popup position 2016-10-25 20:26:19 +02:00
Leclerc Gwendal
c645b07402 feat: add search support 2016-10-25 20:26:19 +02:00
Mathieu Cornic
de8584e890 fix(visitedLinks) : Fontawesome icon works again in menu (+ changed color of check icon) 2016-06-05 16:42:16 +02:00
Andre Sousa
e0782779f1 Add checkmark icon align to right and colo 2016-05-24 15:52:17 +01:00
Cornic Mathieu
75df02c3ab clean : delete console.log and update jquery 2016-04-15 10:03:17 +02:00
Mathieu Cornic
7dec822ae5 feat: changed favicon.png 2016-04-12 01:54:20 +02:00
Mathieu Cornic
29b9a962eb feat: add 404 page 2016-04-12 01:46:08 +02:00
Mathieu Cornic
afb1714e30 feat: changed global styling for headers and p 2016-04-12 01:30:29 +02:00
Mathieu Cornic
f50a77d0c5 feat: partials for style and scripts are now empty 2016-04-11 00:09:03 +02:00
Cornic Mathieu
b6c8ef14e0 feat: add anchor link to headers 2016-03-30 19:33:02 +02:00
Mathieu Cornic
6bbcccac88 Merge branch 'master' of https://github.com/matcornic/hugo-theme-learn 2016-03-29 00:35:44 +02:00
Mathieu Cornic
ab5ed09a77 feat: reset original colors + add note shortcode + split favicon into partial 2016-03-29 00:35:18 +02:00
Leclerc Gwendal
1b1544f9cc feat: add button shortcode 2016-03-27 14:24:51 +02:00
Leclerc Gwendal
c2d67b677c feat: add annimation on link + fix toc + modify sidebar button 2016-03-26 03:28:38 +01:00
Leclerc Gwendal
301c7c5fb9 feat: modify <code> background color 2016-03-25 19:10:51 +01:00
Leclerc Gwendal
6686e925c0 feat: replacing jquery.scrollbar by perfect-scrollbar 2016-03-25 11:53:03 +01:00
Mathieu Cornic
40bdb505df feat: sticky top bar 2016-03-18 19:00:27 +01:00
Mathieu Cornic
4683d790f6 clean 2016-03-18 18:32:57 +01:00
Mathieu Cornic
b644f0eb7e feat: split partials to have better generecity + added index.html sample page 2016-03-17 21:40:58 +01:00
Mathieu Cornic
e1aae4a2cc feat: added Table of contents 2016-03-17 21:05:42 +01:00
Mathieu Cornic
2b88eae74b feat: implemented functionnalities on Markdown images: 1. featherlight for full size view in popup 2. Height/Width customizables 3. Possibility to add css classes 2016-03-17 17:48:18 +01:00
Mathieu Cornic
0495785eda feat: navigation arrows + breadcrumb 2016-03-17 14:10:43 +01:00
Mathieu Cornic
9246996907 feat: init commit with basic functionnalities 2016-03-17 12:01:39 +01:00