Atemu
18.Октябрь.2024 05:37:33
1
Когда вы ссылаетесь на файл GitHub с якорем, превью, которое рендерит Discourse, показывает начало файла, а не часть от якоря.
Например:
<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
В этом случае должно отображаться превью раздела Development, а не начало файла README.
(Не уверен, является ли это на самом деле ошибкой.)
3 лайка
nat
(Natalie T)
25.Октябрь.2024 09:41:07
2
Я добавил сюда pr-welcome , если вы хотите помочь улучшить это.
1 лайк
Я просмотрел этот PR и заметил, что Discourse пытается предоставлять контент напрямую из репозитория, используя https://raw.githubusercontent.com, что возвращает простой, нестилизованый файл (например, https://raw.githubusercontent.com/discourse/discourse/main/README.md#development). Для ссылок на конкретные строки (например, #L-{номер_строки}) происходит переход непосредственно к указанной строке файла для отображения содержимого. Чтобы предпросмотреть конкретный раздел (например, #development, #requirements), вы можете указать номер строки, как показано ниже:
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 лайк