Franciszek Stachura
f08aeb7b76
Split layout into sidebar and topbar
2024-07-30 12:49:29 +02:00
Franciszek Stachura
585d3e3243
Move directory entries generation to a new function
...
* Remove redundant code parameter in generate_source
2024-07-30 12:49:29 +02:00
Franciszek Stachura
6e0a1ad64c
Move source page generation to templates
2024-07-30 12:49:29 +02:00
Franciszek Stachura
36ae9046f4
Move ident template to a new file
2024-07-30 12:49:29 +02:00
Franciszek Stachura
aa5057264d
Move ident page HTML generation to layout template
2024-07-30 12:49:29 +02:00
Franciszek Stachura
ee7326fed3
Make definition types HTML generation more straightforward
2024-07-30 12:49:29 +02:00
Franciszek Stachura
16e2b87a72
Move reference list HTML generation to functions
2024-07-30 12:49:29 +02:00
Franciszek Stachura
237b4bb549
Move breadcrumb links generation to layout template
2024-07-30 12:49:29 +02:00
Franciszek Stachura
126ddae515
Move generate_versions to layout template
2024-07-30 12:49:25 +02:00
Franciszek Stachura
5c88c885da
Remove redundant ident parameter from generate_ident_page
2024-07-16 19:36:54 +02:00
Franciszek Stachura
c1da1a73b7
Add messages to remaining 404 responses
2024-07-16 16:26:41 +02:00
Franciszek Stachura
9f6daeb8eb
Split jinja loader line into parts
2024-07-16 16:20:59 +02:00
Franciszek Stachura
33e4524e74
Replace get_projects with get_directories, don't use os.walk
2024-07-16 16:16:24 +02:00
Franciszek Stachura
55b239c1a3
Fix a bug that caused family in parse_ident_path to always be a tuple
...
* Remove default family from ident post request
* Add comments explaining default family in parse_ident_path
2024-07-16 15:51:46 +02:00
Franciszek Stachura
23e2b1b3b2
Revise error codes, add simple error messages
...
For now error messages render as plain text. This is going to change at
some point.
2024-07-16 15:26:39 +02:00
Franciszek Stachura
16e5b89e60
Remove unused global variables
2024-07-16 15:18:23 +02:00
Franciszek Stachura
08bd4e003e
Add comment about ident/source path validation
...
Rearrange ident validation in handle_ident_url so that it is consistent
with handle_source_url
2024-07-16 15:03:40 +02:00
Franciszek Stachura
34015a96a2
Make functions comments more descriptive
...
+ minor refactors that became obvious while writing comments
2024-07-16 14:36:20 +02:00
Franciszek Stachura
05beb520fc
Move redirect_on_latest_* functions to callers
2024-07-16 13:00:41 +02:00
Franciszek Stachura
252cd2c4db
Iterate over versions.items() in generate_versions
2024-07-16 12:56:58 +02:00
Franciszek Stachura
60b443b861
Group template context building, avoid template context assignemnt
2024-07-16 12:54:11 +02:00
Franciszek Stachura
8d6ef6f35c
Handle unknown error codes and route returning None
2024-07-16 12:39:15 +02:00
Franciszek Stachura
f7daabd975
Refactor URL parsers to use namedtuples
2024-07-16 12:33:33 +02:00
Franciszek Stachura
a08132ec1a
Fix double quoting version in ident and source routes
2024-07-16 12:02:57 +02:00
Franciszek Stachura
47c751819d
Remove unused capture groups
2024-07-16 11:50:33 +02:00
Franciszek Stachura
0402d2e4c1
Rename and move form (cgi.FieldStorage()) in web.py
2024-07-16 11:41:18 +02:00
Franciszek Stachura
4aa25211aa
Group imports in web.py
2024-07-16 11:02:14 +02:00
Franciszek Stachura
cc88d8a5c1
Refactor url handling in web.py
2024-07-12 20:05:54 +02:00
Michael Opdenacker
fc47224425
README.adoc: stop mentioning the removed CentOS Dockerfile
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2024-04-29 13:12:51 +02:00
Théo Lebrun
c8bcfc8306
docker: Fix debian/Dockerfile filepath and README doc
...
Two things get fixed here:
- README says downloading Dockerfile is enough. It is not; Debian
Dockerfile requires docker/debian/000-default.conf file.
- docker/debian/Dockerfile links to 000-default.conf file using:
COPY ./docker/debian/000-default.conf /etc/apache2/sites-available/000-default.conf
This means following command in README cannot work:
docker build [...] .
Either you set cwd to root Git repo and Dockerfile is not found, or
you set cwd to docker/debian/ and 000-default.conf is not found.
Correct command would be:
docker build -f docker/debian/Dockerfile [...] .
We fix Dockerfile by expecting 000-default.conf to be in cwd. We fix
README by rewording the paragraph and updating commands to work based
on Git repo root directory.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2024-04-29 12:36:54 +02:00
Michael Opdenacker
834806ea5b
Drop obsolete CentOS Dockerfile
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2024-04-29 12:35:08 +02:00
Franciszek Stachura
b44b542a93
Cancel a loading popup if another identificator is clicked
...
Use AbortController to cancel pending requests after identifier click
Hide loading popup on error
2024-04-29 12:32:02 +02:00
Franciszek Stachura
a1bff7a948
Make the main element as wide as the code
...
so that the sidebar stays on the screen when a file with very long lines
is scrolled to the end.
2024-03-11 11:40:34 +01:00
Franciszek Stachura
76b7a8a659
Remove query.default_query and all related references
...
* Pass process env vars to script.sh ran from Query
2024-02-07 10:31:58 +01:00
Michael Opdenacker
bc4be252df
utils/index-all-repositories: add freebsd
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2024-01-11 09:56:08 +01:00
Roger Pau Monne
a8bdde2f3d
Support for FreeBSD
...
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
2024-01-11 09:52:48 +01:00
Franciszek Stachura
88646d10b2
Close db on finished api call
2024-01-10 14:52:28 +01:00
Franciszek Stachura
55bb9d47b4
Move query and get_idents* functions into the Query class
2024-01-10 14:52:28 +01:00
Franciszek Stachura
910bdd7938
Add query class, env arg to script and scriptLines
2024-01-10 14:52:28 +01:00
Michael Opdenacker
527ccae62f
utils/index-all-repositories: add Xen project
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2024-01-10 13:46:23 +01:00
Daniel P. Smith
451d08aa60
Support for Xen
...
Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
2024-01-10 13:43:38 +01:00
Costa Shulyupin
75762d3be4
align size to right
...
to make it more readable because
same units are located on the same column:
9 bytes
99999 bytes
instead of
9 bytes
99999 bytes
2024-01-10 11:27:31 +01:00
Franciszek Stachura
cb093ba2a5
Show a loading indicator if API fetch takes more than 200 milliseconds
2023-12-18 11:41:24 +01:00
Franciszek Stachura
7c595fe883
Change style.css version to force stylesheet cache reload
...
Fix documentation links rendering
2023-12-18 11:24:37 +01:00
Franciszek Stachura
5871fa6dca
Add dynamic references
...
Initial implementation of a new mode in which clicking on an
identifier creates a HTML popup instead of redirecting to a new page.
Skip popup if ctrl/shift/meta is held. Fix generateDocComments
Add ident css class to more ident links (docs, dtb, config...)
Make popup positioning more predicatble
* Attempt to move the popup if a part of it is rendered outside of the viewport
* Make popup full-width on smartphone/small tablet devices
Hide popup on escape click
Add "use strict" and fix undeclared variable errors
2023-12-15 09:00:18 +01:00
Franciszek Stachura
051218622e
Fix pygments installation
2023-12-14 10:13:11 +01:00
Franciszek Stachura
4bea126f6f
Fix and refactor Debian Dockerfile
...
* Pin base version to debian:bookworm
* Install falcon with apt
* Use pipx to install Pygments, since global package installation with
pip is not supported anymore
* Add elixir-data to git safe directories so that git ran from script.sh
stops complaining
* Update repo permissions so that git ran from the cgi script stops
complaining
* Move apache configuration to an external file for better readability
2023-12-08 09:46:28 +01:00
Michael Opdenacker
5d39bb2ffa
Bump version to 2.2
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-15 15:40:49 +02:00
Costa Shulyupin
47a6001385
parse linux system calls definitions
...
fixes #222
2023-05-15 14:58:57 +02:00
Michael Opdenacker
a8581e5fd4
Revert "update.py: simplify and optimize thread management"
...
This gave suboptimal results in terms of indexing time,
plus a stuck job. Should be investigated further before
changing this.
This reverts commit e1dd2b4881 .
2023-05-08 07:18:31 +02:00