auto install missing external render if has been configured in app.ini #14802

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

Originally created by @wohenbushuang on GitHub (Jul 25, 2025).

Feature Description

Hi. Can you make the external render installed by default in docker, such as commonly used Jupyter?

  1. The installation is quite difficult for me due to the network reason. (I need to change the Alpine software source to mirrors. But how to change the source used by pipx that is used in the document?)

  2. Jupyter related:

  • The rendered html seems not like original Jupyter style. I have found an offical post showing how to hack it, which needs extra modification on the template. For now the hacked style file is included in header, and it (~270 kB) will be loaded every time whether the request page is a Jupyter notebook or not.
  • The hacked style aforementioned is still not perfect. For example, the progress bar in Jupyter notebook cannot be shown. Also, The theme color is fixed and it is hard to read when gitea is in dark theme.
    Image

Screenshots

GitHub does great to preview a Jupyter notebook.

Indeed, Github use iframe to display the rendered content, which can preserve the original style from external render.

Image
Originally created by @wohenbushuang on GitHub (Jul 25, 2025). ### Feature Description Hi. Can you make the external render installed by default in docker, such as commonly used Jupyter? 1. The installation is quite difficult for me due to the network reason. (I need to change the Alpine software source to mirrors. But how to change the source used by `pipx` that is used in the document?) 2. Jupyter related: - The rendered html seems not like original Jupyter style. I have found [an offical post showing how to hack it]( https://blog.gitea.com/render-jupyter-notebooks/), which needs extra modification on the template. For now the hacked style file is included in header, and it (~270 kB) will be loaded every time whether the request page is a Jupyter notebook or not. - The hacked style aforementioned is still not perfect. For example, the progress bar in Jupyter notebook cannot be shown. Also, The theme color is fixed and it is hard to read when gitea is in dark theme. <img width="1467" height="384" alt="Image" src="https://github.com/user-attachments/assets/a1ff8020-e0c3-463e-8787-015ba31d168e" /> ### Screenshots GitHub does great to preview a Jupyter notebook. Indeed, Github use iframe to display the rendered content, which can preserve the original style from external render. <img width="861" height="692" alt="Image" src="https://github.com/user-attachments/assets/93726c55-d158-4173-964f-a57fd74bd7a0" />
GiteaMirror added the type/proposal label 2025-11-02 11:23:25 -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#14802