aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Use `casefold` Instead Of `lower`Gravatar Hassan Abouelela2022-10-28-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Clean Up TypingGravatar Hassan Abouelela2022-10-28-6/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Update pydis_site/apps/content/utils.pyGravatar Hassan Abouelela2022-10-28-1/+1
| | | Co-authored-by: Johannes Christ <[email protected]>
* Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-10-27-85/+104
|\ | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock # pydis_site/settings.py # pyproject.toml
| * Update off-topic etiquette to reflect server size (#785)Gravatar Gustav Odinger2022-10-25-1/+1
| | | | | | With more than 350k members, saying that we have “tens of thousands of members” seems like an understatement.
| * Add info about working with snekbox 3.11 on botGravatar Chris Lovering2022-10-07-2/+8
| |
| * Increase Request Timeout For GitHub APIGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Fix B026 Linting ErrorsGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-18/+13
| | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| * Upgrade To 3.10Gravatar Hassan Abouelela2022-09-30-5/+2
| | | | | | | | | | | | | | All dependencies and code are already ready for 3.10, all that's necessary is to update the number. Signed-off-by: Hassan Abouelela <[email protected]>
| * Fix Static BuildGravatar Hassan Abouelela2022-09-30-27/+33
| | | | | | | | | | | | | | Remove all unnecessary middleware and return a proper response for redirects to fix static builds. Signed-off-by: Hassan Abouelela <[email protected]>
| * Merge branch 'main' into fix-warningsGravatar Hassan Abouelela2022-09-30-13/+30
| |\
| | * replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna2022-09-18-3/+3
| | |
| | * restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna2022-09-18-3/+2
| | |
| | * replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna2022-09-18-1/+1
| | |
| | * update the RulesView class' docstringsGravatar Amrou Bellalouna2022-09-18-4/+7
| | |
| | * Merge branch 'main' into map-rules-to-keywordsGravatar Amrou Bellalouna2022-09-18-6/+11
| | |\
| | * | make docstring more explicit about the returned contentGravatar Amrou Bellalouna2022-09-18-1/+6
| | | |
| | * | add suggested keywordsGravatar Amrou Bellalouna2022-09-18-9/+9
| | | |
| | * | add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna2022-09-18-0/+1
| | | |
| | * | add collection of keywords per ruleGravatar Amrou Bellalouna2022-08-18-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | In reference to issue #2108, this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
| * | | Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-12/+12
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Fix Django Deprecation WarningsGravatar Hassan Abouelela2022-09-04-2/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes a few features which were deprecated in django 4.0. Running with warnings enabled shows no other errors. USE_L10N was deprecated, and is now enabled by default. In future versions of django, it'll be impossible to turn localization off. Explicitly defining the custom_app_config for the API app is no longer necessary as django can pick it up on its own. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Fix grammar in contributing guide (#771)Gravatar Rohan Shah2022-08-30-1/+1
| | |
* | | Rename Tag Model Author FieldGravatar Hassan Abouelela2022-08-23-12/+17
| | | | | | | | | | | | | | | | | | | | | Renames the tag model `author` field to `authors` to better indicate what's contained in the field, and updates the documentation. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Support Hyperlinked Tag Group ReplacementGravatar Hassan Abouelela2022-08-23-5/+53
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-08-23-7/+12
|\| |
| * | Merge branch 'main' into fix-infraction-testsGravatar Hassan Abouelela2022-08-18-2/+2
| |\|
| | * striked passed dateGravatar Ibrahim2022-08-16-2/+2
| | |
| * | Explicitly Specify Infraction Time In TestsGravatar Hassan Abouelela2022-08-14-5/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The infraction tests checked that the route returned infractions in the correct order, which is based on insertion time. This can be fragile however, since the insertion time can be very close (or identical) during the tests. That became especially more likely with PR #741 (commit 149e67b4) which improved database access speed. This is fixed by explicitly specifying the insertion time, and spacing them out properly. Signed-off-by: Hassan Abouelela <[email protected]>
* | Clarify Tag Model DocstringGravatar Hassan Abouelela2022-08-23-1/+1
| | | | | | Co-authored-by: ChrisJL <[email protected]>
* | Improve Tag Commit NamingGravatar Hassan Abouelela2022-08-23-5/+5
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Tests For Tag MetadataGravatar Hassan Abouelela2022-08-16-29/+148
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Tag Metadata For Static BuildsGravatar Hassan Abouelela2022-08-16-3/+12
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Better Split Up Tag Commit MessagesGravatar Hassan Abouelela2022-08-16-1/+8
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag MetadataGravatar Hassan Abouelela2022-08-16-25/+146
| | | | | | | | | | | | | | 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]>
* | Unify Tag Migrations & Add Commit ModelGravatar Hassan Abouelela2022-08-16-47/+72
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Move GitHub strptime Format To SettingsGravatar Hassan Abouelela2022-08-16-3/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Update Tests For Tag GroupsGravatar Hassan Abouelela2022-08-14-24/+157
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Change Hyperlink Color On HoverGravatar Hassan Abouelela2022-08-14-0/+4
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag Group SupportGravatar Hassan Abouelela2022-08-14-52/+187
| | | | | | | | | | | | | | Adds support for tag groups in content. This involves some modification to the routing, and templating. Signed-off-by: Hassan Abouelela <[email protected]>
* | Move Tag URL To Property And Add GroupGravatar Hassan Abouelela2022-08-14-10/+47
| | | | | | | | | | | | | | | | | | The URLs can be simply constructed using the other tag properties, so they were removed from the database in favor of a property. A group field was also added to support tags within groups. Signed-off-by: Hassan Abouelela <[email protected]>
* | Improve Tag CroppingGravatar Hassan Abouelela2022-08-13-6/+40
| | | | | | | | | | | | | | 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]>
* | Clean Up Tag Link SubstitutionGravatar Hassan Abouelela2022-08-13-4/+3
| | | | | | | | | | Co-authored-by: ChrisJL <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
* | Set Link Color For Sub-elementsGravatar Hassan Abouelela2022-08-13-0/+6
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag View TestsGravatar Hassan Abouelela2022-08-13-4/+233
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Export Tag Model As Top Level Model ObjectGravatar Hassan Abouelela2022-08-13-2/+5
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Content App To NavbarGravatar Hassan Abouelela2022-08-13-0/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag Page TemplateGravatar Hassan Abouelela2022-08-13-5/+105
| | | | | | | | | | | | Add a template for the tag page itself, and add a route to use it. Signed-off-by: Hassan Abouelela <[email protected]>