building blocks for tor project websites
Go to file
kez 14d464d669 Add a README file
The README is the start of some helpful documentation, but it's also
being used to mark the transition to gitlab as the canonical source for
lego. The discussion about that will happen in the MR for this.
2022-01-11 11:46:06 -08:00
.github Add .github/FUNDING.yml 2019-09-12 15:45:52 +02:00
assets Remove the padding-top from .page 2022-01-10 11:13:24 -08:00
databags Remove 2019.wwww docs from the menu 2021-10-12 09:09:39 -03:00
models Add key field to redirect model 2020-03-24 18:23:18 -04:00
packages Patch lego to solve build issues 2021-11-03 00:45:27 +01:00
templates Remove the YEC banner 2022-01-06 12:47:13 -08:00
.gitignore Ignore built egg packages 2020-10-13 11:23:03 -07:00
help Update css 2019-11-05 14:54:52 +01:00
README.md Add a README file 2022-01-11 11:46:06 -08:00

Lego

This repository contains templates, models, assets, databags, and lektor plugins used by many of the lektor sites. It's intended to be added as a submodule, to keep the style and assets up-to-date between sites.

You won't use this repo directly. You'll usually clone it as a submodule:

git clone https://gitlab.torproject.org/tpo/web/tpo
cd tpo
git submodule update --init

# or
git clone --recurse-submodules https://gitlab.torproject.org/tpo/web/tpo

You might also want to add it to a new lektor project:

# from the project root
git submodule add https://gitlab.torproject.org/tpo/web/lego.git

# now symlink files/directories from lego to the proper location...

Package may contain

Here's what's inside lego:

  • assets/
    • assets/javascript/: Contains the javascript used by bootstrap
    • assets/scss/: Contains the SCSS for lego. This is Bootstrap v4, with our own styles layered on top
    • assets/static/: Contains fonts, images, and minified bootstrap js, as well as the compiled SCSS output
  • databags/: All the databags used by the lego templates
  • models/: Contains a model for redirect pages
  • packages/: A number of mirrored and patched python packages. See each package's README for details
  • templates/: Useful templates used by several of the sites