aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/content (follow)
Commit message (Collapse)AuthorAgeLines
* Dark: Use original light theme colors everywhereGravatar hedy2024-01-18-2/+2
| | | | | Adjusted box-shadow for dark mode to be more readable, unfortunately this gave it a little neomorphism effect...
* Fix all conflictsGravatar hedy2023-12-14-12/+83
|\ | | | | | | hopefully I dont have to do this again
| * Fix empty <h1> tag on page listing (#1033)Gravatar jchristgit2023-07-15-2/+2
| | | | | | Closes #1026.
| * Do not duplicate "Edit on GitHub" link for tagsGravatar Johannes Christ2023-05-10-1/+1
| | | | | | | | Closes #963.
| * Fix extra whitespace from buttonGravatar hedy2023-05-06-2/+2
| |
| * Put 'Edit on GitHub' on breadcrum row with Sub-Articles dropdownGravatar hedy2023-05-06-7/+13
| |
| * Edit on GitHub link instead of buttonGravatar hedy2023-05-06-1/+6
| | | | | | | | | | | | | | | | | | - Before the title - Aligned left - more mobile-friendly - Simpler page structure - I personally don't think it makes sense for a simple link to a page's source be a button. Plus, it's similar to the style of other docs like VS Code
| * feat: Edit on GitHub button for content articlesGravatar Hedy Li2023-05-06-0/+1
| | | | | | | | | | | | | | | | - Using `if pages` to check whether the page is an article or category doesn't work for /pages/guides - I still need to modify the styling and position of the button a bit - Should probably just use a static method and put src_url as context instead of having a template tag
| * Improve Tag Commit NamingGravatar Hassan Abouelela2022-08-23-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Better Split Up Tag Commit MessagesGravatar Hassan Abouelela2022-08-16-1/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Add Tag MetadataGravatar Hassan Abouelela2022-08-16-1/+21
| | | | | | | | | | | | | | Uses the commit API to obtain tag metadata such as when it was last edited, and by whom. Signed-off-by: Hassan Abouelela <[email protected]>
| * Add Tag Group SupportGravatar Hassan Abouelela2022-08-14-6/+16
| | | | | | | | | | | | | | Adds support for tag groups in content. This involves some modification to the routing, and templating. Signed-off-by: Hassan Abouelela <[email protected]>
| * Improve Tag CroppingGravatar Hassan Abouelela2022-08-13-1/+3
| | | | | | | | | | | | | | Move the tag cropping logic to the frontend, which makes it easier to crop without crossing boundaries such as link or code block boundaries. Signed-off-by: Hassan Abouelela <[email protected]>
| * Enable Code Highlighting On All Content PagesGravatar Hassan Abouelela2022-08-13-8/+4
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Add Tag Page TemplateGravatar Hassan Abouelela2022-08-13-1/+22
| | | | | | | | | | | | Add a template for the tag page itself, and add a route to use it. Signed-off-by: Hassan Abouelela <[email protected]>
| * Add Tags To Content ListingsGravatar Hassan Abouelela2022-08-13-2/+10
| | | | | | | | | | | | | | Adds bot tags to the content page, as well as a model to go along with it. Signed-off-by: Hassan Abouelela <[email protected]>
* | Use colour helpersGravatar GDWR2022-02-08-5/+5
| |
* | Use colour helpersGravatar GDWR2022-02-08-2/+2
|/
* Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-mainGravatar Hassan Abouelela2022-01-31-1/+1
|\ | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock # pyproject.toml
| * Prevent page title from overlapping dropdown button.Gravatar kosayoda2022-01-23-1/+1
| | | | | | | | | | | | | | | | | | On clients with a small viewport width, the content title of pages overlap the "Sub-Articles" dropdown button due to having the same z-index, causing the element last positioned in the HTML to show up on top. Fixes #643.
* | Refactor: collapsibles as a stand-alone componentGravatar Leon Sandøy2022-01-30-1/+2
|/
* Restructure bot contributing guide (#591)Gravatar Boris Muratov2021-10-17-0/+1
| | | | | | | | | | | | | * Restructure bot contributing guide Restructures the bot guide to focus on getting users "through the door" first, and slowly adding additional information and options. The guide is built in terms of showing ways to run the bot and how to achieve it, rather than listing all of the information for each configuration and environment variable right away. That said, the attempt was to still present the reader with the full information they need, and to still be able to use as a quick reference for contributors who are already familiar with the project. As a style choice, this guide incorporates collapsible elements, which required some CSS and JS additions. This could be resolved with the bulma-collapsible extension, but it doesn't seem to function well inside django templates. The guide includes an optional config.yml to use with the test server template. This is a temporary measure until we get the bootstrapping application going. This guide additionally splits the bot account creation and obtaining Discord ID's guides and they didn't seem related. The original file is kept for now as it is used by other guides at the moment.
* Use bulma extension in place of self-written code.Gravatar kosayoda2021-05-14-17/+0
|
* Use the more consistent highlight.Gravatar kosayoda2021-04-13-1/+1
| | | | | We don't need ReasonML support, and the reasonable theme has a really ugly neon parameter color.
* Use metadata titles in Sub-Articles dropdown.Gravatar kosayoda2021-04-02-4/+2
| | | | | | 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.
* Allow clicking outside the dropdown to hide it.Gravatar kosayoda2021-04-01-3/+11
|
* Add a dropdown menu listing direct children.Gravatar kosayoda2021-04-01-0/+33
| | | | | This only shows when the page is also a category, since regular pages have no children and regular categories already list their children.
* Allow adding a table of contents to a page.Gravatar kosayoda2021-03-29-9/+19
|
* Improve content page and listing metadata keys.Gravatar kosayoda2021-03-27-3/+3
| | | | | | | 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.
* Replace `markdown2` with `markdown` and `python-frontmatter`.Gravatar kosayoda2021-03-24-3/+3
| | | | | | 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.
* Improve variable and key names for page utils.Gravatar kosayoda2021-03-24-3/+3
|
* Refactor common HTML into a base template.Gravatar kosayoda2021-03-24-107/+82
|
* Rename `short_description` to `description`.Gravatar kosayoda2021-03-24-2/+2
| | | | | Given that there is no "long description", just `description` conveys the same information with brevity.
* Fix content columns when there is no sidebar.Gravatar kosayoda2021-03-24-15/+18
| | | | | If the `relevant_links` field is not provided in the markdown, do not restrict contents to 2/3 columns.
* Simplify content app.Gravatar kosayoda2021-03-23-5/+1
| | | | | | | | | 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-19/+19
| | | | | | 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/`.
* Simplify relevant_links configuration in markdown.Gravatar kosayoda2021-03-23-1/+1
|
* Remove Github metadata feature.Gravatar kosayoda2021-03-23-18/+0
| | | | | This feature is still under implementation debate, so it will be further discussed in another issue and implemeneted in a future PR.
* Update highlight.js script and use one dark style.Gravatar kosayoda2021-03-23-2/+3
| | | | Unifies the highlighting with the events app.
* Remove old templatesGravatar ks1292020-11-28-97/+0
|
* Change article.html to match with unlimited categoriesGravatar ks1292020-11-28-3/+3
|
* Create categories and articles listing templateGravatar ks1292020-11-28-0/+62
|
* Use Django URL generation for category URLGravatar ks1292020-10-30-1/+1
|
* Use Django URL generation for content app templatesGravatar ks1292020-10-30-3/+3
|
* Implement fetching contributors and last modification date from GitHubGravatar ks1292020-10-06-0/+18
|
* Rename content -> articles for visual partGravatar ks1292020-10-06-7/+7
|
* Implement custom icons for articlesGravatar ks1292020-10-05-2/+2
|
* Remove last modified field from articleGravatar ks1292020-10-05-3/+0
|
* Migrate content system from Python-Markdown to markdown2Gravatar ks1292020-10-05-9/+8
|
* Change guides system to content systemGravatar ks1292020-10-04-0/+158
As this system will be used for more than just guides, I had to do some refactoring to match this system with plans. Basically now there isn't guides, but articles instead.