Commit Graph

438 Commits

Author SHA1 Message Date
kez
5741d25902 Add install_args setting to lektor-npm-support
due to peer dependency conflicts, donate-static requires `npm install`
to be run with `--force`, or the build fails. by adding the
`install_args` option, we can re-enable npm-support for donate-static.

context: tpo/web/donate-static#91
2022-10-13 11:01:08 -07:00
Jérôme Charaoui
27fbe64409
remove test rule, unused at the moment 2022-09-07 15:14:30 -04:00
Jérôme Charaoui
19b1e875b2
prevent img overflow in main div (tpo/web/lego#44) 2022-09-07 15:10:22 -04:00
kezzle
1dc712220d Merge branch 'i48-syntax-highlighting' into 'main'
Add the lektor-markdown-highlighter plugin

Closes #48

See merge request tpo/web/lego!64
2022-08-02 22:28:56 +00:00
kezzle
2ea43852c3 Add the lektor-markdown-highlighter plugin 2022-08-02 22:28:56 +00:00
Jérôme Charaoui
80696bb8fa test rule for styling markdown images (tpo/web/lego#44) 2022-07-27 10:31:52 -04:00
kezzle
37cc68c9ce Merge branch 'support-i299-magnifying-glass' into 'main'
Add fa-magnifying-glass CSS class and icon

Closes support#299

See merge request tpo/web/lego!67
2022-07-26 17:40:44 +00:00
kez
b7e11889ec Add fa-magnifying-glass CSS class and icon
Closes support#299
2022-07-21 17:50:22 -07:00
kez
6045d3ad4c Create .fa-telegram-png-purple SCSS rule 2022-07-14 11:45:47 -07:00
kez
22110b3570 Fix telegram.png dimensions and disk size
The previous telegram.png didn't have a 1:1 ratio, and needed to be run through zopflipng
2022-07-14 11:43:22 -07:00
kez
b475d3e9c3 Add purple fontawesome telegram logo
Closes #49
2022-07-14 10:17:20 -07:00
kez
48ec5a58c3 Fix error when the robots_txt databag doesn't exist 2022-06-30 21:23:37 -07:00
kezzle
566e15b971 Merge branch 'i7-robots-txt' into 'main'
Add an extensible template for robots.txt

Closes #7

See merge request tpo/web/lego!65
2022-06-30 19:28:41 +00:00
Gus
9e7d362fce Add telegram channel 2022-06-30 01:36:07 +00:00
kez
2f5127ae74 Add an extensible template for robots.txt 2022-06-29 18:04:42 -07:00
kezzle
bac729086c Merge branch 'i27-scss-plugin' into 'main'
TPA RFC 29: Add lektor-scss plugin

Closes #27

See merge request tpo/web/lego!59
2022-06-16 21:26:59 +00:00
kezzle
5ed7972d66 Merge branch 'add-scss-plugin' into 'main'
Add lektor-scss plugin per TPA-RFC-29

See merge request tpo/web/lego!63
2022-06-16 21:25:06 +00:00
kez
21c208766e Add lektor-scss plugin per TPA-RFC-29
Context: #27 and
<https://gitlab.torproject.org/tpo/tpa/team/-/wikis/policy/tpa-rfc-29-lektor-scss-plugin>

This package is an sdist built from the [lektor-scss 1.4.1 tag][] using
Python 3.8.13 to be compatible with our python3.8 lektor requirement.
I've already vetted the plugin's safety for the RFC.

[lektor-scss 1.4.1 tag]: <https://github.com/chaos-bodensee/lektor-scss/tree/1.4.1>
2022-06-14 15:32:26 -07:00
kezzle
ebded39df0 Merge branch 'correction' into 'main'
punctuation is part of the sentence. reported by translator  nr072,thanks!

See merge request tpo/web/lego!61
2022-06-13 21:12:26 +00:00
emma peel
430e3ac72e
punctuation is part of the sentence. reported by translator nr072,thanks! 2022-06-10 14:36:28 +00:00
kez
e450ffc334 Revert "Patch lektor-i18n-plugin to not insert POT text on python 3.9+"
This reverts commit 451f05bc52.
2022-06-06 11:54:06 -07:00
kezzle
c91e4843b7 Merge branch 'fix-i18n-plugin' into 'main'
Patch lektor-i18n-plugin to not insert POT text on python 3.9+

Closes #37 and team#21

See merge request tpo/web/lego!60
2022-06-06 16:30:17 +00:00
kez
451f05bc52 Patch lektor-i18n-plugin to not insert POT text on python 3.9+
Closes: tpo/web/team#21 and tpo/web/lego#37
2022-06-01 12:46:29 -07:00
kez
4071e3799e Add lektor-scss plugin
Closes: #27

I've audited the plugin, and it's safe. it's a straight lektor plugin wrapper
around libsass, with most of the logic handling dev server reloads.

Each site individually will have to switch to the plugin to compile its
SCSS. This will require a lego update, a new config file, and a change
to the CI script.
2022-05-26 16:49:31 -07:00
kezzle
baa04f5f11 Merge branch 'i22-logo-link' into 'main'
Make the navbar logo link to torproject.org/<locale>

Closes #22

See merge request tpo/web/lego!58
2022-05-17 18:25:35 +00:00
kez
6cb9538c75 Make the navbar logo link to torproject.org/<locale>
Closes: #22
2022-05-17 11:22:52 -07:00
Gus
5bd5f94d62 Merge branch 'locale_updates' into 'main'
add ru version for community portal

See merge request tpo/web/lego!57
2022-05-17 13:27:55 +00:00
emma peel
c1b6d1f447 add ru version for community portal 2022-05-17 14:50:35 +02:00
kezzle
4a7fcb9a61 Merge branch 'fix-donate-font' into 'main'
Fix font-size on donate.tpo/donor-faq

See merge request tpo/web/lego!56
2022-04-20 23:49:41 +00:00
kez
6cd87001a9 Fix font-size on donate.tpo/donor-faq
Context: https://gitlab.torproject.org/tpo/web/donate-static/-/merge_requests/74#note_2797056
2022-04-20 13:32:59 -07:00
kezzle
298e4d74fc Merge branch 'enable-mobile-header' into 'main'
Re-enable the mobile header for donate

See merge request tpo/web/lego!55
2022-04-13 18:49:20 +00:00
kez
b0253d0652 Re-enable the mobile header for donate 2022-04-13 11:47:52 -07:00
kezzle
714a109874 Merge branch 'enable-mobile-header' into 'main'
Re-enable the mobile header image for donate-static

See merge request tpo/web/lego!54
2022-03-23 21:12:25 +00:00
kez
bfc52de5d3 Re-enable the mobile header image for donate-static
Context: donate-static#73
2022-03-23 14:09:49 -07:00
kez
e779b2c09f Add sans-serif fallback to .font-weight-light
Context: tpo/web/team#29
2022-03-16 04:32:16 -07:00
kezzle
42495e2fba Merge branch 'teami29-hanuman-font' into 'main'
Add the Hanuman fonts to lego

Closes team#29

See merge request tpo/web/lego!53
2022-03-03 19:13:08 +00:00
kez
49c6aad7e2 Add the Hanuman fonts to lego
Closes team#29
2022-03-03 10:55:01 -08:00
Jérôme Charaoui
39c3700f06 Merge branch 'bootstrap-cleanup' into 'main'
Cleanup unused bootstrap CSS resources, fixes #45

Closes #45

See merge request tpo/web/lego!52
2022-02-23 22:26:51 +00:00
Jérôme Charaoui
88d0be895d Collect all fonts under assets/static/fonts
Previously we had web fonts under for assets/static/fonts and
assets/static/css/fonts, leading to duplicate font files. There
shouldn't be any reason for this setup because CSS files can source font
files using relative paths, which this commit also changes for SCSS
source files. Font paths in CSS files were also changed in the previous
commits.
2022-02-21 16:01:36 -05:00
Jérôme Charaoui
ddcb1f6ccf Cleanup unused bootstrap CSS resources
I could not find any lego-based website that use these files, and their
origin is unclear. In any case, it's clear from the git logs that these
files are stale copies of the real Bootstrap code in "assets/static/css"
2022-02-21 13:59:10 -05:00
Jérôme Charaoui
5743404040 Fix more font URLs 2022-02-21 13:46:36 -05:00
Jérôme Charaoui
7dfa80cce4 Merge branch 'fontawesome-cleanup' into 'main'
Remove unused FontAwesome source files

See merge request tpo/web/lego!51
2022-02-21 18:09:24 +00:00
Jérôme Charaoui
3f0563bdaf use relative path for fontawesome PNG assets 2022-02-09 10:58:34 -05:00
Jérôme Charaoui
caaf20277c fontawesome cleanup
We really only use a small portion of the FontAwesome package, so we
should only keep the parts that we need. This removes over 5000 files
that are copied every time we build the sites locally and in CI so this
should help performance in both build and deployment processes.

This keeps around a handful of files in png/* that are referred to by
bootstrap.css as well and the CSS code and the webfont files.
2022-02-09 10:06:10 -05:00
kez
5b72945001 Remove the include banner.html line from navbar
This was a leftover from the YEC banner. It was commented out, but one
of the plugins was still trying to read it and producing some ugly
output.
2022-01-25 09:19:03 -08:00
kez
6460b17b45 Finish support#86: make side static
I originally merged !27 before it was fully complete. This commit
finishes up the last bit and makes the solution work.
2022-01-24 12:43:55 -08:00
kez
1ab702c05f Merge branch 'issue26_crypto_copy_css' into 'main'
css: add 'cursor' to copy-button to make it more obvious it can be copied.

Closes #26

See merge request tpo/web/lego!48
2022-01-24 17:35:13 +00:00
Paul Walker
dcf5b6d927 css: add 'cursor' to copy-button to make it more obvious it can be copied.
Closes #26.
2022-01-21 22:54:14 +00:00
kez
a1021b8a40 Merge branch 'add-readme' into 'main'
Add a README file

See merge request tpo/web/lego!47
2022-01-19 19:08:58 +00:00
kez
26e2bd6140 Add the new bridgedb-specific css 2022-01-12 14:08:33 -08:00