aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/urls.py (follow)
Commit message (Collapse)AuthorAgeLines
* Timeline: Migrate to Markdown source files - initial implementationGravatar hedy2024-05-24-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The timeline app is introduced, moved from the home app. - Add a basic README.md to illustrate the overall code breakdown of the app as it is in the current stage. - Two entries are added for now. - Add ability to link headers using the slug portion of the filename. - The way markdown files are fetched is similar to that of the resources app - using the AppConfig ready() function, all resources are ensured to be only fetched once when the app is first laoded. I debated whether to introduce the new functionality in the home app instead, without creating a new app. Eventually I decided extracting it to a standalone app now is better as it allows easier extension of functionality in the future. The home app can remain as it is to only server the `/` homepage. The timeline CSS is kept the same, as with the structure of the timeline HTML template. Once the CSS rewrite PR is merged, it's relatively easy to fix conflicts here (again, since timeline is now its own app, with the CSS file and HTML template moved - extra advantage). References to `home:timeline` are updated to use `timeline:index` throughout the codebase, as far as my ripgrep search could go. The format of the markdown + YAML entries are still up for debate, so I've only added the first two entries for now. They can be completely overwritten in the future once the formats are decided by using a script to convert all the data from my JSON file into individual markdown files: http://0x0.st/Xr78.txt This link should last for at least a few months. (Originally saved on https://paste.pythondiscord.com/KPJA, but it expires on 12th April 2024.)
* Add Setting For Static BuildsGravatar Hassan Abouelela2022-08-13-2/+2
| | | | | | | Adds an explicit setting for static builds instead of relying on the environment variable. Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Redirects To Static BuildsGravatar Hassan Abouelela2021-10-10-5/+11
| | | | | | Dynamically adds static HTML redirects for static builds. Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Static Route ConfigurationsGravatar Hassan Abouelela2021-10-10-2/+9
| | | | | Adds configuration which specifies how routes should be handled when building a static preview.
* Merge branch 'master' into subdomains-to-query-pathsGravatar Johannes Christ2021-10-06-0/+1
|\
* | Move subdomains to query paths.Gravatar Johannes Christ2021-06-08-1/+15
|/ | | | | | | | | | | | | | In more detail: - Use Django URL namespaces (e.g. `api:bot:infractions`) instead of `django_hosts` host argument. - Update the hosts file setup documentation to remove subdomain entries. - Update the hosts file setup documentation to mention that the entry of `pythondiscord.local` is not required and mainly for convenience. - Rename the `APISubdomainTestCase` to the more fitting `AuthenticatedAPITestCase`, as authentication is all that is left that the class is doing. - Drop dependency to `django_hosts`.
* Adding initial staff app to DjangoGravatar Sebastiaan Zeeff2019-08-23-0/+1
|
* pysite -> pydis_siteGravatar Gareth Coles2019-04-05-0/+6