Commit Graph

57 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet b6e9ebf100
[Dart] Bump localStorage timestamp 2021-03-30 20:41:46 +02:00
Lucien Cartier-Tilet d645e29ce5
[SCSS, some dart] Theme rework, dark dropped, nord replaces dark
The old dark mode is dropped and replaced with nord. Light and black
themes were also rebased on the Nord theme.

Code blocks now appear the same way my terminal windows appear in my
Linux configuration, emulating a side titlebar.
2021-03-30 19:26:30 +02:00
Lucien Cartier-Tilet 291fc9111b
[dart] Upgrade to Dart 2.12 and its null-safety features 2021-03-30 18:54:31 +02:00
Lucien Cartier-Tilet 0e8e894056
[Style] add twitter card styling 2021-02-12 11:39:54 +01:00
Lucien Cartier-Tilet add728eb6d
[Style] Better titles display 2021-01-28 19:49:46 +01:00
Lucien Cartier-Tilet 6e30e3f361
Add before content for fish and rust source blocks 2021-01-02 14:18:45 +01:00
Lucien Cartier-Tilet f9e0ffa0eb
Add explicit size to header image, bump last update date 2020-12-21 20:38:24 +01:00
Lucien Cartier-Tilet 9632b008ac
Replace header image extension with webp 2020-12-21 20:29:25 +01:00
Lucien Cartier-Tilet 4cd74fd9b4
[Style] Make both SVGs and images centered 2020-12-21 16:05:28 +01:00
Lucien Cartier-Tilet 5355576443
Handle SVGs like images 2020-12-07 16:03:33 +01:00
Lucien Cartier-Tilet 975b5d3fb3
Make build dependencies not fixed to a specific version 2020-12-07 16:03:15 +01:00
Lucien Cartier-Tilet f0847a622f
Fix theme for pre tags with example class 2020-12-06 01:20:42 +01:00
Lucien Cartier-Tilet e69b9fb9c8
Image in header now round 2020-12-06 01:17:29 +01:00
Lucien Cartier-Tilet 16f23c08c6
[Dart] Cleaner code, force the web page to reload on modifier code
The code in `navbar.dart' is now more declarative and cleaner.

If the `lastUpdate' variable’s content change, then it will force the
user to reload the page, bypassing their cache. This can be useful in
case of an update with which the cache could break the website.
2020-08-28 22:23:35 +02:00
Lucien Cartier-Tilet e710c594f1
[Style] Add Nord theme, break up SCSS code
This commit adds the Nord theme into the list of available themes. The
Nord theme is now the default theme for dark-based systems.

Theme buttons now have their own class to make it easier to change
them without too much work.

The `style.scss' file has been split up in three different files:
- main.scss, the new file to load from the HTML page, imports the two
    other files
- themes.scss, containing all the theming of the websites
- style.scss, containing the rest

All websites loading the theme will now need to load it from
`main.scss' instead of `style.scss', likewise with the `.css'
extension
2020-08-28 22:19:42 +02:00
Lucien Cartier-Tilet e4dc101346
fix for dropdown pages 2020-08-28 17:13:31 +02:00
Lucien Cartier-Tilet f99d45e8ab
Simplify code, remove html dependency
This commit removes the `html' package dependency, speeding up the
compile time of the Dart code.

It also simplifies the code and removes some unused code. For instance
the sun, moon, and lightbulb icons is removed, the `Theme' class is
removed, and the `switchTheme' function is now merged into the
`setTheme' function. The `makeThemeItem' function has also had its
second argument removed.
2020-08-25 03:34:55 +02:00
Lucien Cartier-Tilet 8b984e301f
Fix #1
Also make website more mobile-friendly for smaller devices. And ignore
temporary scssc files from cache SCSS compiling.
2020-07-27 00:18:42 +02:00
Lucien Cartier-Tilet 272bd93ed8
Finally fix issue #9 2020-07-26 21:22:06 +02:00
Lucien Cartier-Tilet 167cad1ce3
Fix some errors with webpages nested in directories 2020-07-26 17:36:45 +02:00
Lucien Cartier-Tilet 71f38b13e9
Added correct path in README 2020-06-23 11:16:54 +02:00
Lucien Cartier-Tilet 1331fdaf79
Removed Docker files 2020-06-23 11:15:11 +02:00
Lucien Cartier-Tilet bffbd0c873
Updated README 2020-06-23 11:14:53 +02:00
Lucien Cartier-Tilet 659e406c5e
Removed some leftover from previous version 2020-06-23 11:14:36 +02:00
Lucien Cartier-Tilet fe05e145ab
Underline of tooltiped text is now more visible 2020-05-26 20:54:37 +02:00
Lucien Cartier-Tilet 94ab71402d
Fixed position issue with tooltips 2020-05-26 20:42:18 +02:00
Lucien Cartier-Tilet b804764e24
Fixed subtitle selection 2020-05-26 02:14:13 +02:00
Lucien Cartier-Tilet 4ed2d6bdc4
Fixed broken sitemap parsing 2020-05-26 02:13:48 +02:00
Lucien Cartier-Tilet 2334518ecc
Removed unused code 2020-05-26 02:13:28 +02:00
Lucien Cartier-Tilet 26b198d485
Code style 2020-05-26 00:52:05 +02:00
Lucien Cartier-Tilet fcfd8330ca
Smoother scroll behavior 2020-05-26 00:36:15 +02:00
Lucien Cartier-Tilet 82d3e3d018
Simpler code, removed a loop, code style 2020-05-26 00:35:55 +02:00
Lucien Cartier-Tilet 06994305ac
Code style, updated code for better icon handling 2020-05-26 00:35:34 +02:00
Lucien Cartier-Tilet 99c2127cc8
Fixes #7
Fontawesome was removed from the source code and is a dependency no
longer needed by websites running with OWB
2020-05-22 01:51:55 +02:00
Lucien Cartier-Tilet 08b8116f6f
Header image now easier to change, no need to modify source code 2020-05-21 08:29:59 +02:00
Lucien Cartier-Tilet 9725e24b38
Fixes #8
The default theme is now chosen based on the user’s preference stored in
their device. If the device uses a dark theme, the website’s dark theme
will be used by default. Otherwise, the light theme will be used by
default.
2020-05-21 07:34:10 +02:00
Lucien Cartier-Tilet d69682ec06
Fixed issue where sitemap wouldn’t load 2020-05-21 07:33:22 +02:00
Lucien Cartier-Tilet c9d263b12c
Simplified file, removed unused import 2020-05-21 07:32:47 +02:00
Lucien Cartier-Tilet 8ca55cb710
Better coding style 2020-05-10 12:37:22 +02:00
Lucien Cartier-Tilet aa4600b588
Sitemap query now fully asynchronous
Sitemap generation is now independent from the navbar generation, and
it will be added to the navbar only once the navbar has been created.

Also, better style for code.
2020-05-10 12:00:47 +02:00
Lucien Cartier-Tilet 2f297b6374
Updated minimum version of the Dart SDK required 2020-05-10 11:59:10 +02:00
Lucien Cartier-Tilet 9f6a32f5d2
Added build directory to gitignore 2020-05-10 11:58:51 +02:00
Lucien Cartier-Tilet 34ac1480d3
Upgraded Dart version, better Dockerfile and renamed project
Dart is now upgraded to version 2.8

Any change in dependencies or Dart tooling won’t trigger Docker to
reinstall anything Ruby-related in the image afterward

Name of the Dart package and its homepage were changed, forgot to do
that
2020-05-09 17:45:46 +02:00
Lucien Cartier-Tilet fc1556128c
Fixes #4
Also put in common some code between TOC and Pages dropdown, made style
more mobile-friendly.
2020-05-09 15:16:42 +02:00
Lucien Cartier-Tilet 3c942b4b8f
Fixes bug introduced in e819866
Table of content was made unavailable regardless of whether one was
provided by the page or not. This commit fixes this issue by making an
unavailable TOC only if one is not provided by the web page, otherwise
the TOC will be available.
2020-05-09 14:45:26 +02:00
Lucien Cartier-Tilet 90106df0f6
Added debug mode for backend 2020-05-07 15:46:36 +02:00
Lucien Cartier-Tilet a82fa74a6b
Fixes #2
Horizontal margin for content was reduced in order to better fit mobile
devices
2020-05-07 15:39:06 +02:00
Lucien Cartier-Tilet e81986683c
Fixes issue #5
The absence of a table of contents made the Dart code crash. This commit
adds a default TOC if non already exists.
2020-05-07 15:36:50 +02:00
Lucien Cartier-Tilet cc6519c302
Link best practices, and removed font for faster loading time 2020-05-06 11:48:51 +02:00
Lucien Cartier-Tilet 705e35e971
Removed some fonts from styling 2020-05-05 22:46:12 +02:00