Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Update wording around Handling Static Files

Aperta
#794 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Inizia dalla sezione Handling Static Files nella pagina ReadTheDocs collegata e esamina le issue figlie #798, #799 e #800 insieme alle modifiche completate #795–#797. Il lavoro è terminato quando la sezione riflette la formulazione richiesta e tutti gli elementi figlio applicabili sono risolti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

admin documentation site

There are some issues with this section - https://render-engine.readthedocs.io/en/latest/theme_management/#handling-static-files.

This is a parent issue with smaller issues that can be handled all at once or one by one. Please claim issues individually.

  • #798
    You can add this to the section after the first paragraph.

    Render Engine will set your static path to the "static" directory. If static does not exist it will silently continue.

  • #799

    ![NOTE]:
    This can be overridden if a validation method is defined #793

  • #800
Change:
  • #797

Unlike templates you can have more than one static_path you wish to include. You can add mores static paths using site.static_path.add("<path/to/static>").

to

Static Paths are managed by the Site's theme_manager and you can many static_paths. You can add more static paths using site.static_paths.add("<path/to/static>").

Change
  • #796
from render_engine import Site

class MySite(Site):
     static_path = "my_static"
 # You can also set this after you've initialized the class
 # app = MySite()
 # app.static_path = "my_static"

to

from render_engine import Site

app = MySite()
app.static_paths.add = "my_static"
Change
  • #795

All files and directories under the static_path will be copied to the output_path .

to

static_paths are copied recursively meaning that all files and folders under a static_path path will be copied to the output_path

Lingua principale
Python
Stelle
64
Fork
47
Merge medio
1g 18h
PR unite (30g)
17

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di render-engine/render-engine

Tutte le issue di render-engine/render-engine

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.