== Dev Week -- Getting started with contributing to Ubuntu Documentation -- jbicha -- Thu, 3rd Feb, 2012 == {{{#!irc [17:32] Hi, I'm Jeremy Bicha and I'm a volunteer member of Ubuntu's Documentation and Desktop teams. [17:32] I joined the Documentation Team a year ago as Ubuntu badly needed help with integrating the new GNOME User Guide [17:32] with Ubuntu documentation where we obviously use Unity by default instead of GNOME Shell. [17:33] Today, I'd like to show you how you can get started with contributing to Ubuntu's documentation. [17:34] I really like that you don't need to really be a coder to write good documentation; you just need good English writing skills and attention to detail. [17:34] If you visit our team's wiki page, you can see that there are several different areas we work on. [17:34] https://wiki.ubuntu.com/DocumentationTeam [17:34] There is the help wiki which anyone can edit and all you need is a Ubuntu One/Launchpad account. [17:34] https://help.ubuntu.com/community [17:35] One thing that's confused me in the past about Ubuntu's wiki is that there are actually two of them! [17:35] help.ubuntu.com is a reference for Ubuntu-related "how-to's, tips, tricks, and hacks" whereas wiki.ubuntu.com is a resource for contributing to Ubuntu so it has pages for all the different Ubuntu teams you can join. [17:35] So if you want to contribute help guides, you can do that at help.ubuntu.com/community. [17:35] Secondly, the Ubuntu Docs Team is responsible for the help that's shipped inside Ubuntu and the other Ubuntu flavors (Kubuntu, Xubuntu, etc.) [17:36] You can see this system help if you type help into the dash in Unity. [17:36] This help is also mirrored to https://help.ubuntu.com/11.10/ubuntu-help/ [17:36] There's several different ways you can help out with the system documentation. [17:36] You can read the help and file bugs if you see typos. [17:37] https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/ [17:37] Since this is Developer Week, I'd also like to show you can submit fixes in the same format we use. [17:37] Run this command in Terminal: [17:37] bzr branch lp:ubuntu-docs [17:37] It may take a while depending on how fast your internet connection is, but that copies the source code from the Launchpad servers. [17:38] You can then use gedit or your favorite text editor to open up one of the pages. [17:38] Open up ubuntu-docs/ubuntu-help/help/C/unity-introduction.page for instance. [17:39] The first 20 lines or so are special information that sets the page title, keeps track of the page authors and the last time it was formally reviewed and other similar information. [17:39] Then you have the actual content. Each paragraph must start with

and end with

. [17:40] The Ubuntu Desktop Guide is written in Mallard (older docs or non-GNOME stuff use a similar but slightly more complex format named Docboook). More information about the format and a 10-minute introduction can be found at http://projectmallard.org/ [17:41] The Mallard format is pretty cool as it is designed to be topic-based, as opposed to older computer help which read more like a manual or a book with chapters [17:43] We're trying to convert more and more GNOME apps to use it because it is more useful as I believe most people want to read an answer to their problem or a how-to for a specific task instead of trying to page through a longer document with chapters [17:44] We'd love it if other projects like KDE switched to the format too but that hasn't really happened yet [17:44] Anyway, you probably also want to bookmark http://blogs.gnome.org/shaunm/files/2012/01/mallardcheatsheet.png or https://gitorious.org/projectmallard/mallard-cheat-sheets/trees/master [17:45] that lets you see all the additional features you can add to your Mallard help files in one easy location [17:46] After you've made your changes (fixed a typo or added some extra information for instance), navigate in your terminal to the ubuntu-docs folder and run [17:46] bzr commit [17:47] This will open up nano (by default) where you should type in a description of what changes you've made. Then hit Ctrl+O to save and Ctrl+X to exit the editor. [17:47] Then you can run bzr push lp:~/ubuntu-docs/my-changes You'll want to definitely use something more descriptive than "my-changes" to describe what you've done. [17:48] Then open https://code.launchpad.net/~ in your web browser [17:48] Click the name of the branch you just pushed to [17:48] And then click the Propose for Merging button [17:49] the target branch should say lp:ubuntu-docs [17:49] you can add a description if you like, but you should probably leave the reviewer field blank, then click Propose Merge [17:50] There are 10 minutes remaining in the current session. [17:50] If you have any questions, you can ask them now [17:51] Also, you can visit #ubuntu-docs or ask on our mailing list https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc [17:55] the Ubuntu Documentation team and GNOME Docs team definitely could use your help [17:55] There are 5 minutes remaining in the current session. [17:56] the Ubuntu Docs team is all-volunteer and we're always looking for more contributors [17:57] jincreator asked: Can Mallard import ubuntu docs to pdf? [17:58] yes, you can but I'm going to have to get back with you about how that works [17:58] (since we're nearly out of time) [17:58] but Mallard already has exporters for html, xhtml, epub, and I believe pdf [17:59] thanks for your time! }}}