Commit Graph

20 Commits

Author SHA1 Message Date
Fred Pauchet 04736aa405 Try to sort articles, based on their published_dates 2023-01-10 21:48:33 +01:00
Fred Pauchet 74a5faae48 Write site index 2023-01-10 21:40:31 +01:00
Fred Pauchet 0fe3c62f45 Ignore IDE configuration files 2023-01-10 21:02:39 +01:00
Fred Pauchet 23558ac1b4 Display section parent 2023-01-10 21:02:18 +01:00
Fred Pauchet b5af5d20da Start rendering templates w/ Jinja 2023-01-10 20:58:21 +01:00
Fred Pauchet b5fcc92d19 Link articles to the current site 2023-01-09 21:42:44 +01:00
Fred Pauchet e577d67b16 Refactor site articles 2023-01-09 20:22:21 +01:00
Fred Pauchet d991c17cac Parsing available files 2023-01-05 21:50:48 +01:00
Fred Pauchet 1e7676f107 Add a command line to start site generation 2023-01-05 21:42:14 +01:00
Fred Pauchet 762dc07a16 Add a class that represents a taxonomy of categories 2023-01-05 20:46:30 +01:00
Fred Pauchet 91c9533b08 Simplify Article and Site models 2023-01-02 22:13:16 +01:00
Fred Pauchet dc0baa971c Append pymdown extensions
Though not used for now...
2023-01-02 22:12:31 +01:00
Fred Pauchet 182e563df6 Set poetry run pytest --cov=jack -vv
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0 -- /home/fred/.cache/pypoetry/virtualenvs/jack-vJTRSbf8-py3.10/bin/python
cachedir: .pytest_cache
rootdir: /home/fred/Sources/jack
plugins: cov-4.0.0
collecting ... collected 5 items

tests/test_models.py::test_article_metadata PASSED                       [ 20%]
tests/test_models.py::test_article_content PASSED                        [ 40%]
tests/test_models.py::test_article_published_date PASSED                 [ 60%]
tests/test_models.py::test_article_fenced_code PASSED                    [ 80%]
tests/test_models.py::test_site_append_article PASSED                    [100%]

---------- coverage: platform linux, python 3.10.6-final-0 -----------
Name               Stmts   Miss  Cover
--------------------------------------
jack/__init__.py       0      0   100%
jack/models.py        47      2    96%
--------------------------------------
TOTAL                 47      2    96%

============================== 5 passed in 0.14s =============================== to call poetry + pytest with coverage
2023-01-02 22:10:36 +01:00
Fred Pauchet b9b084c03c Add MIT licence 2023-01-02 22:10:12 +01:00
Fred Pauchet d5b4488151 Add a for testing files 2023-01-02 18:36:30 +01:00
Fred Pauchet 6811970c29 Add code coverage with pytest 2023-01-02 18:31:06 +01:00
Fred Pauchet d53629fb2b Add a failed test 2022-12-29 21:35:02 +01:00
Fred Pauchet 725c738056 A first models with articles and site 2022-12-29 21:34:02 +01:00
Fred Pauchet bd2bc1d551 Add black & pytest as dev dependencies 2022-12-29 20:31:58 +01:00
Fred Pauchet 836df74b2d Create Jack project 2022-12-29 20:21:17 +01:00