Atemu
Outubro 18, 2024, 5:37am
1
Ao vincular um arquivo do Github com uma âncora, a pré-visualização que o Discourse renderiza é do topo do arquivo em vez de a partir da âncora.
Veja, por exemplo:
<a href="https://www.discourse.org/">
<img src="images/discourse-readme-logo.png" width="300px">
</a>
The online home for your community.
<img width="1920" height="1135" alt="github-readme" src="https://github.com/user-attachments/assets/abaaf30f-0cfb-4505-a530-6f8e5a43d24b" />
> You can self-host Discourse on your own infrastructure. But if you'd rather skip the setup, maintenance, and server management, we offer official Discourse hosting.
>
> 👉 Learn more about [Discourse hosting](https://discourse.org/pricing)
Discourse is a 100% open-source community platform for those who want complete control over how and where their site is run.
Our platform has been battle-tested for over a decade and continues to evolve to meet users’ needs for a powerful community platform.
**With Discourse, you can:**
* 💬 **Create discussion topics** to foster meaningful conversations.
This file has been truncated. show original
Esta pré-visualização deveria mostrar a seção de desenvolvimento, não o topo do readme.
(Não tenho certeza se isso é realmente um bug.)
3 curtidas
nat
(Natalie T)
Outubro 25, 2024, 9:41am
2
Adicionei um pr-welcome aqui se você quiser ajudar a melhorar isso.
1 curtida
Revisei este PR e notei que o Discourse tenta servir conteúdo diretamente do repositório usando https://raw.githubusercontent.com, que fornece um arquivo bruto simples e sem estilo (por exemplo, https://raw.githubusercontent.com/discourse/discourse/main/README.md#development). Para referências específicas de linha (como #L-{número-da-linha}), ele salta diretamente para a linha especificada no arquivo para exibir o conteúdo. Para visualizar uma seção específica (por exemplo, #development, #requirements), você pode especificar o número da linha, como mostrado abaixo:
Discourse is a 100% open-source community platform for those who want complete control over how and where their site is run.
Our platform has been battle-tested for over a decade and continues to evolve to meet users’ needs for a powerful community platform.
**With Discourse, you can:**
* 💬 **Create discussion topics** to foster meaningful conversations.
* ⚡️ **Connect in real-time** with built-in chat.
* 🎨 **Customize your experience** with an ever-growing selection of official and community themes.
* 🤖 **Enhance your community** with plugins, from chatbots powered by [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) to advanced tools like SQL analysis with the [Data Explorer](https://meta.discourse.org/t/discourse-data-explorer/32566) plugin.
To learn more, visit [discourse.org](https://www.discourse.org/) and join our support community at [meta.discourse.org](https://meta.discourse.org/).
Here are just a few of the incredible communities using Discourse:

1 curtida