I like Codeber pages a lot.
Tho I think there could be some extra features to further improve how it works, which I like to propose here.
These features would all exist in a .pages file that is put in the root directory of the pages branch.
source-directory
This option would set the directory - relative to root - from where it would serve the page content.
Example:
source-directory:docsThis would serve content from the docs directory.
Not sure, but this may be equal to _redirects' /* /docs/:splat 200 feature?
ignore-files
This option lets Codeberg pages ignore certain files and folders.
Glob patterns could be used.
Example:
ignore-files:- 'README.md'- '**/README.md'Ignores the README.md file in the root directory and any README.md files in any sub-folder.
redirects
Would effectively replace the _redirects file in functionality.
Example:
redirects:- '/foo /bar'- '/articles/* /posts/:splat 302'default-pages
Defines files to serve on specifit HTTP Status responses.
Example:
default-pages:- '404 /errors/404.html'Serves the 404.html file from the errors folder whenever a 404 is returned.
Maybe also make Codeberg pages look for specific pages like 404.html or 404.md to serve by default?
I hope that these features can be considered and eventually implemented.