git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: html page display via cgit

From
Stefan Naewe <stefan.naewe@atlas-elektronik.com>
Date
Sep 1, 2010, 10:23 UTC
Message-ID
<4C7E29A1.8020304@atlas-elektronik.com>
In-Reply-To
<AANLkTinJx0ZKjCtpq9k6nwigodnu42EvqchpgQtwGp5S@mail.gmail.com>
On 9/1/2010 11:32 AM, Shivdas Gujare wrote:
Show 9 quoted lines
> Hi All,
> 
> I hope, this is the right mailing list for cgit as well.
> I am trying to add some "html logs" inside cgit, but I can't open
> these logs via cgit inside firefox, i.e. cgit open every files in
> "plain" format,
> would like to know if it is possible to open "html" pages inside cgit
> so that if I click on html page added into git, it opens in html and
> not in plain format.
Set this in /etc/cgitrc

mimetype.gif=image/gif mimetype.html=text/html mimetype.jpg=image/jpeg mimetype.jpeg=image/jpeg mimetype.pdf=application/pdf mimetype.png=image/png mimetype.svg=image/svg+xml

HTH
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Don't stop posting, a good laugh breaks up my day nicely
Previous: Joshua JuranNext: Shivdas Gujare
Message 6 of 9 in “html page display via cgit”
  1. Shivdas GujareSep 1, 2010
  2. Ævar Arnfjörð BjarmasonSep 1, 2010
  3. Joshua JuranSep 1, 2010
  4. Ævar Arnfjörð BjarmasonSep 1, 2010
  5. Joshua JuranSep 1, 2010
  6. Stefan NaeweSep 1, 2010
  7. Shivdas GujareSep 1, 2010
  8. Lars HjemliSep 1, 2010
  9. Stefan NaeweSep 2, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.