跳转到主要内容

章节Discourse 开发者指南(英文原版)

themes components

34 页更新于 1 周前

开始阅读

本章内容34

  1. 01 Developing Themes Discourse Themes and Theme Components can be used to customize the look, feel and functionality of Discours... 1 周前
  2. 02 Quick reference As themes grow more powerful, there's more to remember about how they work. We have loads of detailed docum... 1 周前
  3. 03 Designers guide So you're interested in in designing your own theme for Discourse? You've arrived at the right topic :smile... 1 周前
  4. 04 Theme Creator This topic will walk you through how to use the Theme CLI with our Theme Creator site to develop a theme an... 1 周前
  5. 05 Theme CLI The Discourse Theme CLI is a ruby gem that allows you to use your editor of choice when developing Discou... 1 周前
  6. 06 Theme structure Discourse supports native themes that can be sourced from a .tar.gz archive or from a remote git repositor... 1 周前
  7. 07 Multiple JS files Complex theme javascript can be split into multiple files, to keep things nicely organised. To use this fun... 1 周前
  8. 08 Multiple SCSS files Themes and theme components are becoming steadily more powerful, and developers are getting more and more a... 1 周前
  9. 09 Theme settings Discourse has the ability for themes to have "settings" that can be added by theme developers to allow site... 1 周前
  10. 10 Objects for theme settings We are introducing a new type: objects to the supported types for theme settings which can be used to repl... 1 周前
  11. 11 Migrate settings Introduction As of Discourse version 3.2.0.beta3, Discourse themes/components can leverage a migrations fea... 1 周前
  12. 12 Theme metadata You can add various pieces of metadata to a theme. Some are stored in the about.json file, and some are st... 1 周前
  13. 13 Core variables Discourse is incredibly customizable! The goal of this topic is to show you how make use of all the amazing... 1 周前
  14. 14 Localizable strings For those looking to add custom languages and translations to a Discourse theme or theme component, they ca... 1 周前
  15. 15 E2E testing Writing automated tests for themes is an important part of the theme development process which can help ens... 1 周前
  16. 16 Minimizing maintenance Discourse is highly customizable, enabling you to modify almost any aspect of its appearance through themes... 1 周前
  17. 17 Font sizes Global font-size changes The simplest way to change the font size of your entire community would be to over... 1 周前
  18. 18 Include assets Themes and theme components allow you to handle uploaded assets such as images and fonts. You can control w... 1 周前
  19. 19 Custom icons You can replace a Discourse's default SVG icons individually or as a whole with your own custom SVG and ove... 1 周前
  20. 20 Dark mode Previously, all colors in Discourse were stored as SCSS variables. To support automatic dark mode color sch... 1 周前
  21. 21 Theme modifiers As themes become more ambitious, we've been looking for ways to allow them to manipulate core server-side b... 1 周前
  22. 22 Pseudo-elements So, you want to insert some text or image in your Discourse site. Regarding the text in most cases it is su... 1 周前
  23. 23 Font component Discourse supports importing themes containing assets from a remote repository. This allows theme authors t... 1 周前
  24. 24 Highlight.JS language I've just added a hook to our HighlightJS code so now you can use the plugin API to add a custom language f... 1 周前
  25. 25 Homepage content A very common situation you'll find yourself in as a theme developer is the need to create content that onl... 1 周前
  26. 26 Message format Guidelines for Translators In Discourse all Message Format strings have a key that ends with "_MF". The Cro... 1 周前
  27. 27 Global icon changes This is an easy way to change a Discourse icon globally. Right click on the icon you want to change and sel... 1 周前
  28. 28 Alternative icons By default, Discourse bundles icons from the excellent FontAwesome library. But there are a lot of free-to-... 1 周前
  29. 29 Wiki post style A quick guide to change the style of your wiki posts: Change the background color: In your /admin/customiz... 1 周前
  30. 30 Color scheme Discourse now supports importing color schemes from remote repository. Here I will demonstrate how you woul... 1 周前
  31. 31 Navigation menu If you are working on a theme for an existing site and want to preview how it will look with the sidebar or... 1 周前
  32. 32 Post content styles Requirements :information_source: To be able to use these tips and tricks, you need to be an administrator ... 1 周前
  33. 33 Theme screenshots :bookmark: This guide explains how to add preview screenshots to your Discourse theme to showcase how it lo... 1 周前
  34. 34 Themeable site settings Themeable site settings allow a theme (not components) to override a small subset of core site settings, wh... 1 周前