Alllow configuring default rendered file (e.g. from README.md to index.md) #7518

Open
opened 2025-11-02 07:28:24 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @tionis on GitHub (Jun 28, 2021).

  • Gitea version (or commit ref): 1.14
  • Git version: 2.32
  • Operating system:
    Alpine Linux (Docker)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No - Not possible
  • Log gist:

Description

An Option to set a custom list of priority for rendering files in the preview window below the file tree would be awesome.
The goal would be for example to set the Rendered-Index-Doc variable to index.md, README.md, readme.md. Then the website would prefer rendering the index.md over README.md (similat to how mkdocs website are build).
Currently index.md are only rendered when selecte explicitly in the file tree.

Originally created by @tionis on GitHub (Jun 28, 2021). - Gitea version (or commit ref): 1.14 - Git version: 2.32 - Operating system: Alpine Linux (Docker) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Not possible - Log gist: ## Description An Option to set a custom list of priority for rendering files in the preview window below the file tree would be awesome. The goal would be for example to set the Rendered-Index-Doc variable to `index.md, README.md, readme.md`. Then the website would prefer rendering the index.md over README.md (similat to how mkdocs website are build). Currently index.md are only rendered when selecte explicitly in the file tree.
GiteaMirror added the type/proposal label 2025-11-02 07:28:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7518