24 Commits

Author SHA1 Message Date
daveoconnor
c980879935 Release Report Enhancements (#1750) (#1992) 2025-11-04 14:14:20 -08:00
daveoconnor
6dbfb017bc Release report changes (#1862) 2025-08-04 19:26:52 -07:00
daveoconnor
50559609e9 fixed issues with libraries navigation, refactors (#1213) (#1250)
There's a good amount of refactoring in this, so this is going to look
like a much bigger change than it is. In reality it makes the dispatch
code simpler.

Fixes: 
1. Resolved the issue with the libraries pages not redirecting correctly
2. Resolved an issue around categories not being preserved moving from
page to page.

The issue with the redirects was there was a tug of war on arriving on
/library between the various ways of determining where the user should
end up.
I added a `/libraries/grid/` url and now `/libraries/` determines which
list page the user should end up on based on 1) url 2) cookie, 3) the
default, same for version preference. We can probably get rid of
dispatch() later. This has the added bonus of allowing reliable linking
to a specific list view (e.g. for users to bookmark one type)

Refactors:
1. Separated the navigation on the three library pages into a standalone
template.
2. Moved some constants to constants.py
3. Moved a lot of the views methods which were only used by the
dispatch() call to utils.py .
4. At that stage there were circular imports so I moved the docs
generation functions which were only used in constants.py to
constants_utils.py. utils.py is more general.
2024-09-19 12:06:36 -07:00
Lacey Williams Henschel
2ed461d294 Add exception logic for some versions of Member Function docs; fix tests 2024-02-09 11:42:30 -08:00
Lacey Williams Henschel
881def7147 Add exception logic for Math Common Factor docs 2024-02-09 11:42:30 -08:00
Lacey Williams Henschel
ba19df67aa Add exception logic for Typed In Place docs 2024-02-09 11:42:30 -08:00
Lacey Williams Henschel
eab88eb401 Add exception logic for Identity Type docs 2024-02-09 10:01:44 -08:00
Lacey Williams Henschel
f3262f1de6 Add exception logic for even older Circular Buffer versions 2024-02-09 10:01:44 -08:00
Lacey Williams Henschel
4156a188c4 Fix exception logic -- html vs htm 2024-02-08 14:21:34 -08:00
Lacey Williams Henschel
d865cf2711 Add exception logic for Multi Array, Multi Index, and Smart Ptr docs 2024-02-08 14:02:33 -08:00
Lacey Williams Henschel
57e1de2db6 Add exception logic for older Interval docs 2024-02-08 13:36:57 -08:00
Lacey Williams Henschel
b9d8778976 Add exception logic for older Compressed Pair docs 2024-02-08 13:20:25 -08:00
Lacey Williams Henschel
759d2d9c28 Add exception logic for older Dynamic Bitset docs 2024-02-08 13:08:00 -08:00
Lacey Williams Henschel
4f80c1871a Add exception logic for older Call Traits docs 2024-02-08 11:33:06 -08:00
Lacey Williams Henschel
c95e5407db Add exception logic for Any library
- Fix bug when a libraries.json file is not found
2024-02-07 13:17:48 -08:00
Lacey Williams Henschel
4a7200472b Add exception logic for StringView docs 2024-02-07 10:29:11 -08:00
Lacey Williams Henschel
17da0c8610 Fix docs urls for string-ref 1.77.0 and prior 2024-02-07 09:21:26 -08:00
Lacey Williams Henschel
2ec3702f4e Fix documentation urls for IO library
- Refactor to allow for multiple documentation paths for a single library
- Add more helper functions

Also did a live test
2024-02-05 17:06:54 -08:00
Lacey Williams Henschel
c9cc3c49b3 Add exception logic to load the Detail docs links
- Add a button to the LibraryVersion admin to reload the docs links
- Add some minimal docs on the admin features
2024-02-05 14:14:55 -08:00
Lacey Williams Henschel
91a1936dcd Change monthly refresh to update only last month's commit counts 2023-07-10 06:22:36 -07:00
Lacey Williams Henschel
0a8ed5e755 Add util function to get first, last day of last month 2023-07-10 06:22:36 -07:00
Lacey Williams Henschel
688ae87e76 Add methods to retrieve adoc content for libraries
(Part of #394 and #252)

- Add method to the GitHub API class to retrieve a specific file from a repo by its tag and path (to retrieve README or adocc files)
- Add method to Library model to retrieve the description content and render it
- Fail gracefully if no content is found
- Add caching logic for redis and database caching
2023-06-15 15:08:42 -07:00
Lacey Williams Henschel
47eeaee2ef 🔧 Refactor fake email function into util 2023-03-27 12:08:19 -07:00
Lacey Williams Henschel
7f7ea7fdc4 Util function to parse date 2022-12-15 10:03:46 -08:00