aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content (follow)
Commit message (Collapse)AuthorAgeLines
...
| * Fixed whitespace issue raised by linter.Gravatar swfarnsworth2021-05-15-1/+1
| |
| * Merge branch 'main' of https://github.com/python-discord/site into ↵Gravatar swfarnsworth2021-05-15-3/+5
| |\ | | | | | | | | | swfarnsworth/rules_update
| * | Changed rules to those agreed upon in a prior staff meeting.Gravatar swfarnsworth2021-05-14-7/+9
| | |
* | | Fixes Typo In Contrib GuideGravatar Hassan Abouelela2021-05-16-1/+1
| | | | | | | | | Co-authored-by: ToxicKidz <[email protected]>
* | | Reorganizes Contributing GuidelinesGravatar Hassan Abouelela2021-05-15-5/+9
| |/ |/| | | | | | | Drops mentions of black, renames mentions of precommit to pre-commit, and rewords statements that have caused confusion.
* | Merge branch 'main' into revert-488-vcokltfre/fix/uppercase-envGravatar Hassan Abouelela2021-05-15-2/+4
|\ \
| * | Modify env vars list for Lancebot and PythonGravatar dawnofmidnight2021-05-14-2/+4
| |/
* | Explicitly state which config file should be used for use_fakeredisGravatar Joe Banks2021-05-14-1/+1
| |
* | Revert "fix: USE_FAKEREDIS is uppercase"Gravatar Joe Banks2021-05-14-1/+1
|/
* fix: USE_FAKEREDIS is uppercaseGravatar vcokltfre2021-05-14-1/+1
|
* Add redirect to notion privacy location.Gravatar kosayoda2021-05-14-0/+5
| | | | | Since this is a backwards compatibility redirect, the page should redirect the user rather than rely on the cloudflare worker.
* Fix misleading coverage report.Gravatar kosayoda2021-05-14-1/+3
| | | | | | | | | | Due to an optimization in CPython that is amended in 3.10, coverage.py is sometimes unable to determine the coverage of continue statements in branches. See: https://github.com/nedbat/coveragepy/issues/198 Adding a no-op like a print or an empty statement would solve the coverage issue, but I've opted to just ignore the line. This should be tested and the line removed when the site is updated to Python 3.10.
* Add privacy policy information and link.Gravatar kosayoda2021-05-13-0/+7
| | | | | This should be redirected to the notion page using our cloudflare worker.
* Increase padding between text and images in lists.Gravatar kosayoda2021-04-19-3/+3
| | | | | | This has a caveat in that there may be additional padding if the first thing in a list item is an image, but it is very unlikely in practice, so it's not handled for now.
* Fix unresolving links.Gravatar kosayoda2021-04-19-2/+2
|
* Implement miscellaneous review changes.Gravatar kosayoda2021-04-19-4/+4
| | | | Punctuation, icon usage...
* Add TOC to certain pages.Gravatar kosayoda2021-04-19-22/+9
|
* Update references to static images.Gravatar kosayoda2021-04-19-35/+38
|
* Improve markdown whitespace.Gravatar kosayoda2021-04-19-67/+69
| | | | | | | Replace double trailing whitespaces with <br> tags to prevent certain editors from automatically stripping the necessary space. Remove any extra single whitespace.
* Add miscellaneous pages and fixes.Gravatar kosayoda2021-04-15-2/+106
|
* Migrate Python Discord guides.Gravatar kosayoda2021-04-15-1/+381
|
* Migrate Python guides.Gravatar kosayoda2021-04-15-0/+574
|
* Avoid duplicate entries for page and category.Gravatar kosayoda2021-04-14-1/+1
| | | | | | | | We have to add another check since `subarticles` is actually a list of dictionaries and not a dictionary, so key overriding does not work. We want the categories to take precedence over the pages in case of future feature expansion involving showing sub-sub-articles.
* Migrate contributing pages.Gravatar kosayoda2021-04-14-0/+1733
| | | | | Some guides were updated to fit current PyCharm UI and to keep up with Seasonalbot -> Sir-Lancebot changes.
* Migrate root files.Gravatar kosayoda2021-04-13-0/+654
|
* Use metadata titles in Sub-Articles dropdown.Gravatar kosayoda2021-04-02-39/+13
| | | | | | This allows us to keep filenames (thus URLs) as concise as possible, while having a more descriptive entry in the Sub-Articles dropdown for category pages.
* Fix overriden PAGES_PATH in settings.py.Gravatar kosayoda2021-04-01-3/+3
| | | | | This was causing mysterious 404s because while migrating a feature to dewikification, the same variable would be placed in the settings file.
* Update misleading documentation.Gravatar kosayoda2021-04-01-1/+2
|
* Add a dropdown menu listing direct children.Gravatar kosayoda2021-04-01-1/+42
| | | | | This only shows when the page is also a category, since regular pages have no children and regular categories already list their children.
* Document defining a table of contents for a page.Gravatar kosayoda2021-04-01-0/+27
|
* Place category pages in the same directory as categories.Gravatar kosayoda2021-04-01-14/+11
|
* Add new tests to achieve full coverage.Gravatar kosayoda2021-03-29-6/+37
|
* Fix failing tests.Gravatar kosayoda2021-03-29-9/+26
|
* Allow adding a table of contents to a page.Gravatar kosayoda2021-03-29-3/+12
|
* Document additional markdown features.Gravatar kosayoda2021-03-29-0/+26
| | | | | Adds image caption capabilities and documents missing HTML extensions available.
* Allow displaying a page at a category path.Gravatar kosayoda2021-03-29-19/+58
| | | | | | This is useful for our /contributing pages, which have a main contributing page at /contributing but project pages under the same path, /contributing/bot etc.
* Improve content page and listing metadata keys.Gravatar kosayoda2021-03-27-12/+11
| | | | | | | Make category `title` consistent with page `title`. Simplify `icon` key, since there is no benefit to defining the icon class and the icon separately. Allow overriding the `icon` for category entries just like page entries.
* Remove guide reference to `markdown2`.Gravatar kosayoda2021-03-26-3/+1
| | | | | | Now that we use a separate library for frontmatter (which uses pyyaml), we can simplify the guide and remove the reference to the old markdown library.
* Refactor content app tests.Gravatar kosayoda2021-03-25-289/+285
| | | | | | The tests uses pyfakefs to simulate a fake filesystem that is reused over the content app tests. Test coverage for the app is brought to 100%.
* Replace `markdown2` with `markdown` and `python-frontmatter`.Gravatar kosayoda2021-03-24-25/+81
| | | | | | This allows us to properly escape codeblocks within markdown, permalink to headers on a page, and decouples getting metadata from a file and getting generated HTML from the Markdown content.
* Simplify pathlib code and specify file encoding.Gravatar kosayoda2021-03-24-12/+11
|
* Improve variable and key names for page utils.Gravatar kosayoda2021-03-24-4/+4
|
* Refactor common HTML into a base template.Gravatar kosayoda2021-03-24-1/+6
|
* Improve phrasing and wording of documentation.Gravatar kosayoda2021-03-24-9/+9
|
* Update guide to reflect changes in events app.Gravatar kosayoda2021-03-24-2/+90
| | | | Wording is also improved.
* Propogate markdown language data to highlight.jsGravatar kosayoda2021-03-24-0/+1
|
* Rename `short_description` to `description`.Gravatar kosayoda2021-03-24-84/+4
| | | | | Given that there is no "long description", just `description` conveys the same information with brevity.
* Fix content app tests.Gravatar kosayoda2021-03-24-45/+37
|
* Simplify content app.Gravatar kosayoda2021-03-23-85/+41
| | | | | | | | | Rather than having two views for the base page and all other pages, all pages now use the same view. The view context handler is simplified to take advantage of pathlib features. The markdown folder is now /content/resources/* rather than /content/resources/content/*, as the latter is unnecessary nesting.
* Rename `articles` to `pages`.Gravatar kosayoda2021-03-23-136/+137
| | | | | | Articles was a good name, but we want an `articles` category in the future. `/pages/guides/` and `/pages/articles/` are clearer in name than `/articles/guides/` and `/articles/articles/`.