├── tests ├── __init__.py ├── test_requirements.py ├── test_exports.py ├── test_image_extractor.py ├── test_license_generator.py └── test_schema_generator.py ├── screenshot-480px.png ├── screenshot-840px.png ├── screenshot-980px.png ├── screenshot-1440px.png ├── screenshot-social.png ├── bulrush ├── templates │ ├── tag.html │ ├── category.html │ ├── comments.html │ ├── taglist.html │ ├── translations.html │ ├── github.html │ ├── disqus_script.html │ ├── mermaid.html │ ├── tags.html │ ├── archives.html │ ├── period_archives.html │ ├── page.html │ ├── pagination.html │ ├── article_list.html │ ├── article_infos.html │ ├── index.html │ ├── article.html │ ├── meta_tags.html │ ├── analytics.html │ ├── social.html │ ├── mailchimp.html │ └── base.html ├── static │ ├── images │ │ └── made-with-bulma--black.png │ └── css │ │ ├── main.less │ │ └── highlight.less ├── __init__.py ├── image_extractor.py ├── schema_generator.py └── license_generator.py ├── LICENSE ├── setup.py ├── .github └── workflows │ └── push.yml ├── .gitignore └── README.md /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /screenshot-480px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/screenshot-480px.png -------------------------------------------------------------------------------- /screenshot-840px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/screenshot-840px.png -------------------------------------------------------------------------------- /screenshot-980px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/screenshot-980px.png -------------------------------------------------------------------------------- /screenshot-1440px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/screenshot-1440px.png -------------------------------------------------------------------------------- /screenshot-social.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/screenshot-social.png -------------------------------------------------------------------------------- /bulrush/templates/tag.html: -------------------------------------------------------------------------------- 1 | {% extends "index.html" %} 2 | {% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} 3 | -------------------------------------------------------------------------------- /bulrush/templates/category.html: -------------------------------------------------------------------------------- 1 | {% extends "index.html" %} 2 | {% block title %}{{ SITENAME }} - {{ category }}{% endblock %} 3 | -------------------------------------------------------------------------------- /bulrush/templates/comments.html: -------------------------------------------------------------------------------- 1 | {% if DISQUS_SITENAME %}
{% endif %} 2 | -------------------------------------------------------------------------------- /bulrush/static/images/made-with-bulma--black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/textbook/bulrush/HEAD/bulrush/static/images/made-with-bulma--black.png -------------------------------------------------------------------------------- /tests/test_requirements.py: -------------------------------------------------------------------------------- 1 | from unittest import TestCase 2 | 3 | 4 | class TestRequirements(TestCase): 5 | 6 | def test_webassets(self): 7 | import webassets 8 | -------------------------------------------------------------------------------- /bulrush/templates/taglist.html: -------------------------------------------------------------------------------- 1 | {% if article.tags %} 2 | {% for tag in article.tags %} 3 | 4 | {{ tag | escape }} 5 | 6 | {% endfor %} 7 | {% endif %} 8 | -------------------------------------------------------------------------------- /bulrush/templates/translations.html: -------------------------------------------------------------------------------- 1 | {% macro translations_for(article) %} 2 | {% if article.translations %} 3 | Translations: 4 | {% for translation in article.translations %} 5 | {{ translation.lang }} 6 | {% endfor %} 7 | {% endif %} 8 | {% endmacro %} 9 | -------------------------------------------------------------------------------- /bulrush/templates/github.html: -------------------------------------------------------------------------------- 1 | {% if GITHUB_URL %} 2 |5 | 6 | Tags for {{ SITENAME }} 7 |
8 | 9 | 18 | {% endblock %} 19 | -------------------------------------------------------------------------------- /bulrush/templates/archives.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}{{ SITENAME }} - Archive{% endblock %} 3 | {% block content %} 4 |5 | 6 | Archives for {{ SITENAME }} 7 |
8 | 9 | 17 | {% endblock %} 18 | -------------------------------------------------------------------------------- /bulrush/templates/period_archives.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}{{ SITENAME }} - Archive{% endblock %} 3 | {% block content %} 4 |5 | 6 | Archives for {{ period | reverse | join(' ') }} 7 |
8 | 9 | 17 | {% endblock %} 18 | -------------------------------------------------------------------------------- /bulrush/templates/page.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}{{ page.title|striptags }}{% endblock %} 3 | {% block tags %} 4 | {% with item=page %} 5 | {% include 'meta_tags.html' %} 6 | {% endwith %} 7 | {% endblock %} 8 | {% block content %} 9 |{{ article.summary | striptags | truncate(120, end='...
') }}
This is just some text in the article.
29 |
Comments !
19 | 20 | 30 | 31 |