You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
5.5 KiB

  1. # Contributing
  2. ## Introduction
  3. There are a variety of ways to contribute to the development of Semantic. We are a very new project and are looking for an enthusiastic and like-minded group of core contributors. We use the lovely free project management software [Trello](https://trello.com/jack148/recommend) for keeping track of project issues and updates.
  4. Some Trello boards are open publicly, others are limited to contributors. Anyone can share ideas for the direction of the project using our public boards.
  5. If you are looking to be added to contributor board on Semantic and are active in development, please reach out to me by e-mail [jack@myfav.es](mailto:jack@myfav.es)
  6. ### Publicity
  7. One of the easiest ways to support Semantic UI is to get the word out
  8. ## Making Semantic Better
  9. ### Bugs & Issues
  10. Please submit any bugs you encounter when using the library to our [Github Issues Tracker](https://github.com/jlukic/Semantic-UI/issues?state=open).
  11. When submiting a bug report, please include a set of steps to reproduce the issue and any related information, browser, OS etc. If we can't see the issue then it will make solving things much more difficult.
  12. Please create a fork of this [jsfiddle](http://jsfiddle.net/pMDsH/) to demonstrate bugs.
  13. ### Style Guide
  14. Contributors should read over the coding guidelines for the project. Most importantly, the guide for language, as it is one of the most important parts about Semantic UI.
  15. [Language](http://semantic-ui.com/guide/styleguide.html)
  16. [CSS](http://semantic-ui.com/guide/cssguide.html)
  17. [Javascript](http://semantic-ui.com/guide/javascriptguide.html)
  18. ### Pull Requests
  19. Anyone can jump on the issues board and grab off bugs to fix. This is probably the best way to become a contributor to Semantic. Be sure to adhere to the style guides when submitting code.
  20. * [Create a Pull Request](https://github.com/jlukic/Semantic-UI/compare/)
  21. * [View Open Issues](https://github.com/jlukic/Semantic-UI/issues?state=open)
  22. ### Expanding UI
  23. Semantic is looking for people to help contribute new core UI components, and suggest extensions for the library.
  24. If you have suggestions for components missing from Semantic which you'd like to see in future versions please add them to our public UI Component board. The current list of upcoming components, and their current development status can be seen on the contributor UI board.
  25. #### Visit UI Development Boards
  26. [Public](https://trello.com/b/Q8uTLy2T) |
  27. [Contributor](https://trello.com/b/yVsh5Rds)
  28. ## Specification Development
  29. We're looking currently for ideas on the best way to expand Semantic to include both core library and third party components. This requires creating a component specification which can be used by anyone to create ui components, and a package management system (website or command line) for authors to distribute them.
  30. These features are very important for the healthy growth of the Semantic ecosystem, and to expand the number of components available to users.
  31. #### Visit Community Development Boards
  32. [Public](https://trello.com/b/FZvMsVIM) |
  33. [Contributor](https://trello.com/b/eOoZwNBQ)
  34. ---
  35. ## Development
  36. A guide to developing locally
  37. ## Running Locally
  38. It may be useful to run the development docs locally when working on a forked version of semantic, as the docs themselves help in testing out changes to ui components.
  39. ### 1) Install Node
  40. Semantic docs are written in DocPad which requires NodeJS.
  41. Make sure npm does not require sudo to operate, this might cause permissions issues.
  42. * [Node JS via Package Manager](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)
  43. * [Installing Node JS without sudo](https://gist.github.com/isaacs/579814)
  44. ### 2) Install Dependencies
  45. ```bash
  46. npm install -g docpad
  47. docpad install eco
  48. docpad update; docpad upgrade
  49. ```
  50. ```bash
  51. npm install -g grunt-cli
  52. ```
  53. ### 3) Fork Semantic
  54. [Fork](https://github.com/jlukic/Semantic-UI/fork)
  55. ### 4A) Build Semantic
  56. In order to have the current version of semantic available inside your local documentation, you will have to build it once with Grunt
  57. ```bash
  58. grunt build
  59. ```
  60. ### 4B) Start Your Server
  61. ```bash
  62. docpad run
  63. ```
  64. Docpad should now run an instance of semantic-ui.com locally you can access at `http://localhost:9778`
  65. Note that some asset files might be missing until you run `grunt build` once.
  66. ## Fixing Bugs
  67. ### Watch Script
  68. If you are working on fixing a UI component that is part of Semantic, your best bet is to work actively on the file in `/src/{type}/{elementname}/` while running a watch script from grunt. This will rebuild the docs after you make changes, so you can see if you have corrected the issue you are fixing.
  69. To see exactly what this is doing you can check out our [commented gruntfile](https://github.com/jlukic/Semantic-UI/blob/master/Gruntfile.js)
  70. ```bash
  71. grunt
  72. ```
  73. The watch task is the default grunt task for Semantic, so you can start it quite simply.
  74. ### Packaging Elements
  75. For convenience there is also a separate grunt command for building minified, packaged, and compressed versions of the library.
  76. ```bash
  77. grunt build
  78. ```
  79. ## The Future
  80. ### UI Dev Kits
  81. We are working to create development kits for writing and distributing third party UI definitions. These, are planned to land after our 1.0 release and allow other developers to contribute ui components or reskins of existing components.
  82. For more information on the development of the UI specification for third party components, please visit our community discussion boards on Trello
  83. #### Development Boards
  84. [Public](https://trello.com/b/FZvMsVIM) |
  85. [Contributor](https://trello.com/b/eOoZwNBQ)