README 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Dragora website
  2. ===============
  3. [Description/Abstract/Short summary]
  4. Contents
  5. 1. Prerequisites
  6. 2. Usage
  7. 2.1 Adding pages
  8. 2.2 Removing pages
  9. 2.3 Editing pages
  10. 2.4 Posting news items
  11. 2.5 Removing the latest news item
  12. 2.6 Adding a translation directory
  13. 2.7 Building the site
  14. 3. How it all works
  15. 3.1 Directory structure
  16. 3.2 How the scripts work
  17. 4. Contributing
  18. 5. Authors
  19. 6. Acknowledgments
  20. 2. Usage
  21. This section describes how to use the various helper scripts to manage the
  22. site's structure and content.
  23. 2.1 Adding pages
  24. To add a new page, run
  25. ./addpage
  26. without any arguments. The script works interactively and will walk you
  27. through the process, providing context-specific help for each question
  28. (except where it doesn't).
  29. 2.2 Removing pages
  30. To remove a page, run
  31. ./delpage
  32. without any arguments. The script works interactively and will walk you
  33. through the process, providing context-specific help for each question
  34. (except where it doesn't).
  35. If the page selected for removal is visible in the site navigation, the
  36. corresponding navigation item will be removed as well.
  37. 2.3 Editing pages
  38. To edit a page, simply find the respective `index.html.in` file in
  39. `source/pages/<language>/<page directory>` and modify its content with a text
  40. editor.
  41. Beware that the News page is, in general, not meant to be edited by hand. See
  42. sections 2.4 and 2.5 for more information.
  43. 2.4 Posting news items
  44. To post a news item, run
  45. ./addnews
  46. without any arguments. The script will ask for a publishing date (providing
  47. the current date as a default value), a title, and a URL pointing to the
  48. respective message in the web archive of the dragora-users mailing list.
  49. 2.5 Removing the latest news item
  50. If something went wrong when adding a news item, the action can be reverted
  51. by simply running
  52. ./addnews -r
  53. Beware that this command merely restores the previous state from a backup
  54. file created when the latest news item was added and then removes that backup
  55. file.
  56. 2.6 Adding a translation directory
  57. To add a directory for a translation of the site into another language, run
  58. ./addlang
  59. without arguments. The script will ask for the ISO two-letter code for the
  60. language of the new translation and then copy everything from
  61. `source/pages/en` to `source/pages/<new language>`.
  62. 2.7 Building the site
  63. To build the site, simply run
  64. ./build
  65. To include test pages in the build, run
  66. ./build -t