1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/docs/content/doc/administration
contra-bit 58caf422e6
Add .livemd as a markdown extension (#22730)
## Needs and benefits
[Livebook](https://livebook.dev/) notebooks are used for code
documentation and for deep dives and note-taking in the elixir
ecosystem. Rendering these in these as Markdown on frogejo has many
benefits, since livemd is a subset of markdown. Some of the benefits
are:
- New users of elixir and livebook are scared by unformated .livemd
files, but are shown what they expect
- Sharing a notebook is as easy as sharing a link, no need to install
the software in order to see the results.

[goldmark-meraid ](https://github.com/abhinav/goldmark-mermaid) is a
mermaid-js parser already included in gitea. This makes the .livemd
rendering integration feature complete. With this PR class diagrams, ER
Diagrams, flow charts and much more will be rendered perfectly.

With the additional functionality gitea will be an ideal tool for
sharing resources with fellow software engineers working in the elixir
ecosystem. Allowing the git forge to be used without needing to install
any software.

## Feature Description
This issue requests the .livemd extension to be added as a Markdown
language extension.

- `.livemd` is the extension of Livebook which is an Elixir version of
Jupyter Notebook.
- `.livemd` is` a subset of Markdown.

This would require the .livemd to be recognized as a markdown file. The
Goldmark the markdown parser should handle the parsing and rendering
automatically.

Here is the corresponding commit for GitHub linguist:
https://github.com/github/linguist/pull/5672

Here is a sample page of a livemd file:

https://github.com/github/linguist/blob/master/samples/Markdown/livebook.livemd

## Screenshots

The first screenshot shows how github shows the sample .livemd in the
browser.
The second screenshot shows how mermaid js, renders my development
notebook and its corresponding ER Diagram. The source code can be found
here:
79615f7428/termiNotes.livemd

## Testing
I just changed the file extension from `.livemd`to `.md`and the document
already renders perfectly on codeberg. Check you can it out
[here](https://codeberg.org/lgh/Termi/src/branch/livemd2md/termiNotes.md)

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-04-26 11:22:54 -04:00
..
adding-legal-pages.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
backup-and-restore.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
backup-and-restore.zh-cn.md Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts (#23629) 2023-03-23 23:18:24 +08:00
backup-and-restore.zh-tw.md Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts (#23629) 2023-03-23 23:18:24 +08:00
cmd-embedded.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
command-line.en-us.md add CLI command to register runner tokens (#23762) 2023-04-17 13:07:13 -04:00
config-cheat-sheet.en-us.md Add .livemd as a markdown extension (#22730) 2023-04-26 11:22:54 -04:00
config-cheat-sheet.zh-cn.md Refactor setting.Other and remove unused SHOW_FOOTER_BRANDING (#24270) 2023-04-22 19:38:25 -04:00
customizing-gitea.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
customizing-gitea.zh-cn.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
email-setup.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
environment-variables.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
environment-variables.zh-cn.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
external-renderers.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
fail2ban-setup.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
fail2ban-setup.zh-cn.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
git-lfs-support.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
https-support.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
https-support.zh-cn.md zh-cn support on doc pages (#24166) 2023-04-18 08:23:35 +08:00
logging-documentation.en-us.md Correct the access log format (#24085) 2023-04-13 21:14:06 +08:00
mail-templates.en-us.md docs: fix typo (#23924) 2023-04-04 11:22:45 -04:00
repo-indexer.en-us.md Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts (#23629) 2023-03-23 23:18:24 +08:00
reverse-proxies.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
reverse-proxies.zh-cn.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00
search-engines-indexation.en-us.md Adjust some documentations titles (#23941) 2023-04-06 11:06:32 +02:00
signing.en-us.md Update docs markdown file weight to make it clear (#23909) 2023-04-04 21:47:31 +08:00