0
Fork 0
mirror of https://projects.blender.org/infrastructure/gitea-custom.git synced 2024-12-22 07:13:09 -05:00
Custom styling and templates for the Gitea install in projects.blender.org
Find a file
Pablo Vazquez 24e354fc79 Introducing: Developer navigation bar
In line with the code blog and other dev sites (Wiki, DevTalk)

Everything is pretty much copied from the one in blender.org (_navbar_developer.php),
with some additions to make it work in Gitea.

The styling additions are in the <style> block with the comment "/* Custom styling for Gitea */"

The link to "Projects" is projects.blender.org (since it makes sense here but
not yet in the Code blog).

On the Gitea side, two custom templates have changed:
* head_navbar.tpml was changed to add the mobile navbar expand toggle.
* body_inner_pre.tpml contains the actual navbar, copied from the blender.org repo
  with the following changes:
 * Added <style> block custom for Gitea.
 * Added custom notifications code from head_navbar.tpml
 * Added user buttons (notif, create, register, sign in, etc),
   See the area around "{{/* Here starts the custom styling for gitea. */}}"
 * In order to style the buttons as such, the class `navbardev-btn` was added
   to the Register, Sign In, Notifications, Create, and User dropdown buttons.
2023-01-26 15:37:51 +01:00
public Fix Blender logo not visible with themes other than bthree-dark 2023-01-26 04:21:40 +01:00
templates Introducing: Developer navigation bar 2023-01-26 15:37:51 +01:00
.gitignore Initial commit 2023-01-20 12:23:48 +01:00
README.md README: mention the name of the folder and where to clone it 2023-01-24 14:42:34 +01:00

Gitea Customization for Blender Developer Portal

Setup

  • Clone this repo in a custom folder at the root of your gitea install.
  • Edit app.ini to set the following
    • DEFAULT_THEME = bthree-dark
    • THEMES = bthree-dark
  • Run the gitea binary with the following arguments.
    • --custom-path pointing to the repo directory
    • --config pointing to the custom app.ini