Discourse Docs 플러그인은 Discourse 포럼을 커뮤니티 주도형 지식 베이스로 변환하는 강력한 도구입니다. 사용자가 문서를 생성, 업데이트 및 큐레이션할 수 있는 전용 Docs 섹션을 제공합니다. 이 플러그인은 해당 섹션에 쉽게 접근할 수 있는 Docs 버튼을 특징으로 합니다. 이는 커뮤니티의 집단적 지식을 활용하고 중요한 정보에 대한 중앙 집중식 리소스를 제공하는 훌륭한 방법입니다.
결국, Docs는 정의된 카테고리 및/또는 태그 집합 내에서 지식 베이스 스타일의 토픽을 더 쉽게 노출할 수 있게 해줍니다.
변경 사항을 적용하려면 ./launcher rebuild app을 실행하거나, 환경 변수이므로 다운타임을 최소화하기 위해 ./launcher destroy app && ./launcher start app을 실행할 수 있습니다. 이에 대한 자세한 내용은 여기 - Set Environmental Variables 에서 확인할 수 있습니다.
사이트 표시 텍스트도 일치하도록 변경하는 것이 좋습니다. /admin/customize/site_texts 페이지에서 'docs’의 모든 인스턴스를 검색할 수 있지만, 주요 항목은 다음과 같습니다:
스펙을 실행하는 중 아래 오류가 발생했습니다. 저는 어떤 파일도 수정하지 않았습니다. 이 오류를 무시해도 될까요?
➜ discourse git:(main) ✗ LOAD_PLUGINS=1 bundle exec rspec plugins/discourse-docs/spec
Randomized with seed 57815
...................................F
Failures:
1) Discourse Docs | Index topic excerpts when the theme modifier serialize_topic_excerpts is true shows the excerpts
Failure/Error: expect(page).to have_css(".topic-excerpt", text: topic_1.excerpt)
expected to find css ".topic-excerpt" but there were no matches
[Screenshot Image]: /xxxx/discourse/discourse/tmp/capybara/failures_r_spec_example_groups_discourse_docs_index_topic_excerpts_when_the_theme_modifier_serialize_topic_excerpts_is_true_shows_the_excerpts_460.png
~~~~~~~ JS LOGS ~~~~~~~
~~~~~ END JS LOGS ~~~~~
# ./plugins/discourse-docs/spec/system/docs_index_spec.rb:52:in `block (4 levels) in <main>'
# ./spec/rails_helper.rb:469:in `block (2 levels) in <top (required)>'
Finished in 13.16 seconds (files took 2.79 seconds to load)
36 examples, 1 failure
Failed examples:
rspec ./plugins/discourse-docs/spec/system/docs_index_spec.rb:50 # Discourse Docs | Index topic excerpts when the theme modifier serialize_topic_excerpts is true shows the excerpts
Randomized with seed 57815
훌륭한 애드온을 만들어 주셔서 감사합니다. 그런데 한 가지 질문이 있습니다. 컨텍스트 햄버거 메뉴에서 해당 링크를 제거할 수 있는 옵션이 있을까요? 항상 표시되는 섹션에 수동으로 추가했는데(이 기능을 활용해 긴 사용자 생성 콘텐츠, 예를 들어 기고문 등을 소개하고 싶기 때문이죠) 결과적으로 두 번 표시됩니다: