Sorry if this has been asked, I tried searching for documentations but all I can find is the Get Started post, it helped me create a plugin but it didn’t cover topics such as what APIs are available. So, are there documents at all?
Thanks!
Sorry if this has been asked, I tried searching for documentations but all I can find is the Get Started post, it helped me create a plugin but it didn’t cover topics such as what APIs are available. So, are there documents at all?
Thanks!
Api documentation is available at
Discourse API doc is not what I’m requesting. I was thinking about something like Chrome plugin development docs or WordPress plugin development docs. For example when I read the Beginner’s Guide to Creating Discourse Plugins, I have questions like what are other special properties and callbacks does Discourse recognize in the default module? or what parameters are passed into the initialize() method? Neither the guide nor docs.discourse.org answered those questions.
As discourse uses ember in frontend and rails in backend, you can browse their respective docs to know how to create components, or controllers, etc.
That being said, you can go through the code of discourse to learn how they are doing things.
I had asked similar question long time back… See if the answers given here help you.
Then those questions are probably good candidates for Development ![]()
답변이 없어서 다시 올려봅니다 ![]()
@bcartwri96 핵심은 Discourse 플러그인 API에 대한 포괄적인 문서가 매우 부족하다는 것입니다.
Meta 사이트에는 Developing Discourse Plugins - Part 1 - Create a basic plugin 같은 정보 조각들이 있지만, 포괄적인 API 레퍼런스는 없는 것 같습니다. 일부는 순수한 Ember나 Rails로 구현되어 있지만, 그 사이에는 순수한 Discourse 관례에 기반한 부분이 매우 많습니다.
시간이 지나면서 커뮤니티가 이 공백을 메울 수 있는 Discourse 개발자 매뉴얼을 함께 만들어 가면 좋겠습니다. 우리는 Pavilion 에서 HOWTO 조각들을 통해 일부 이를 실천에 옮겼고, 이 작업이 더 포괄적인 레퍼런스 가이드를 개발하기 위한 초기 기반이 되기를 바랍니다.
이 파일을 확인해 보세요. 대부분의 메서드가 간략히 문서화되어 있습니다.
https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/lib/plugin-api.js