Franciszek Stachura
d6df6deeaa
Add information about PYTHONUNBUFFERED env var to README
...
Without it update logs don't show up on docker run
2024-08-05 15:15:01 +02:00
Franciszek Stachura
ffe8d79c40
Simplify and refactor Dockerfile
...
* Remove repository indexing from Dockerfile
* Copy Elixir code from the context instead of cloning it from Github
* Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile
* Add docs for the new Dockerfile
* Add an utility script that allows easier repository configuration
* Add .dockerignore
* Use relative paths in Docker section in README
2024-08-05 14:54:03 +02:00
Michael Opdenacker
662482ebce
Audio course course banner
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2024-08-05 14:20:10 +02:00
Franciszek Stachura
f7341fc285
Remove support for exec filters
...
* Move configin filter to new filter interface
2024-08-02 15:42:42 +02:00
Franciszek Stachura
3cbbf58414
Move Kconfig, defconfig and make filters to new filter interface
2024-08-02 15:30:26 +02:00
Franciszek Stachura
da18c75560
Move cppinc filters to new filter interface
2024-08-02 15:30:08 +02:00
Franciszek Stachura
9a396cd840
Move DTS filters to new filter interface
2024-08-02 15:30:08 +02:00
Franciszek Stachura
7ecad127b7
Move ident filter to new filter interface, create filter context in web.py
2024-08-02 15:30:08 +02:00
Franciszek Stachura
afdc1c4512
Add Filter interace, class for context used by filters
...
* Move filter utils to a new file
2024-08-02 15:30:08 +02:00
Franciszek Stachura
f5f49b6b39
Quick fix for searching identifiers with commas
...
Fixes #309 , both manual search and display in search bar.
2024-08-02 13:43:14 +02:00
Franciszek Stachura
06ba355912
Fix extension match for filters
...
Fixes cppinc, and dts filters
2024-08-01 15:51:44 +02:00
Franciszek Stachura
bd4a7734c1
Change tag to version_unquoted in generate_ident_page
2024-07-31 11:33:53 +02:00
Franciszek Stachura
86af364b14
Generate pretty HTML for more errors
2024-07-31 11:33:53 +02:00
Franciszek Stachura
3d34855677
Make full width of directory entry in tree template clickable
2024-07-31 11:33:49 +02:00
Franciszek Stachura
decc2680b2
Move title generation to templates
2024-07-30 15:16:11 +02:00
Franciszek Stachura
8932f26a22
Move topbar family list to web.py
2024-07-30 15:16:07 +02:00
Franciszek Stachura
ddf00119b8
Minor variable names and arguments changes
...
* Move get_version lambdas to new variable
2024-07-30 15:12:17 +02:00
Franciszek Stachura
4c22738687
Move ident URL generation to web.py
2024-07-30 15:11:32 +02:00
Franciszek Stachura
5c92b378ea
Create file URLs for tree in web.py
2024-07-30 14:10:51 +02:00
Franciszek Stachura
ee4ccdeb80
Provide base source and ident URLs for project and tag as variables
2024-07-30 14:10:51 +02:00
Franciszek Stachura
bf6f183189
Don't display size for directories
...
* Refactor projects list
2024-07-30 14:10:51 +02:00
Franciszek Stachura
d107fa27aa
Remove current_url template variable
...
Now that the base tag is gone it's not useful anymore
* Make line number links use relative paths
2024-07-30 14:10:51 +02:00
Franciszek Stachura
8cf71f5e62
Remove base tag and baseurl template variable
2024-07-30 14:10:51 +02:00
Franciszek Stachura
21802b3203
Make dynamic references popup use absolute paths
2024-07-30 14:10:51 +02:00
Franciszek Stachura
edce92a64c
Make url in templates and web.py absolute
...
This is a step to removing the base tag. Once everything uses absolute
URLs, base tag will be removed and some URLs will be replaced
by relative URLs.
2024-07-30 14:10:51 +02:00
Franciszek Stachura
5c6e604b9b
Generate links for versions sidebar outside of template context
...
* Replace url variable with current_url that contains the current
absolute url. This gets us a little closer to getting rid of the base
tag
2024-07-30 14:10:51 +02:00
Franciszek Stachura
dbc7191060
Change template variable names to be more descriptive
2024-07-30 14:10:51 +02:00
Franciszek Stachura
fabbc52d36
Move filter path exceptions handling filter_applies
...
Note that this also causes postfunc to not run on files where prefunc was not
applied because filter_applies returned False. This could be a mistake,
although it seems that the only filter that uses path exceptions (cppthinc filter
modified from linux filter) should be compatible with this behavior.
2024-07-30 14:10:51 +02:00
Franciszek Stachura
ba5c4007a2
Move code formatting to format_code
2024-07-30 14:10:47 +02:00
Franciszek Stachura
d1f70679df
Remove fake print from web.py
...
Replace all instances of realprint with print
2024-07-30 12:49:29 +02:00
Franciszek Stachura
554bb11381
Refactor directory tree generation to use a namedtuple
...
* Fix #302 - Symlinks redirect to invalid paths (but only the directory
tree part)
* Move more view-related logic to the template
2024-07-30 12:49:29 +02:00
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