כיצד להפוך את דף המסמכים לדף הבית המוגדר כברירת מחדל

סיכום מבוסס בינה מלאכותית

huynhthai824 asked how to make the Docs page the default homepage on Discourse. keegan provided a solution by sharing a code snippet to add to the theme, using setDefaultHomepage("docs"). The code was successfully implemented by huynhthai824, who expressed gratitude to keegan.

Hello,
How display Docs page become homepage of Discourse?
Thank you!

You can add this code to your theme:

<script type="text/discourse-plugin" version="0.8">
  const { setDefaultHomepage } = require('discourse/lib/utilities');
  setDefaultHomepage("docs");
</script>

Wow, this code is success!
Thank you so much! wanna cry.
Thank again @keegan