smithy.yml.5.scd 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. smithy.yml(5)
  2. # NAME
  3. *smithy.yml* - configuration file for *smithy*(1)
  4. # DESCRIPTION
  5. This file describes where smithy should scan for repositories, their
  6. respectives titles, description and slug. Also if it should include the default
  7. styles and assets or if it should load from a respective directory.
  8. # GLOBAL DIRECTIVES
  9. *host: <address>*
  10. Address will be displayed on a repository, indicating the URL he can use
  11. to clone.
  12. *port: <...>*
  13. Port to serve smithy from. You can use a reverse-proxy (nginx, apache) to
  14. expose smithy.
  15. # GIT DIRECTIVES
  16. *root: <path>*
  17. The main directory where smithy should scan for repositories.
  18. *repos*
  19. A list of repositories and their respective configurations.
  20. # STATIC DIRECTIVES
  21. If you'd like to customize the templates or the css, you can grab the source
  22. code, copy the `include` directory somewhere, and then set `root`, and
  23. `templates.dir` to that directory.
  24. *root: <path>*
  25. When set to an empty string, it will load the static assets bundled within
  26. the project.
  27. *prefix: <path>*
  28. A given prefix that all assets will receive.
  29. # TEMPLATES DIRECTIVES
  30. *dir: <path>*
  31. The directory to load templates from.
  32. # EXAMPLE CONFIGURATION
  33. When manually building smithy from source, a sample config file will be
  34. included on `/usr/local/share/smithy/smithy.yml`.
  35. ```
  36. title: Smithy, a lightweight git force
  37. description: Publish your git repositories with ease
  38. host: git.example.com
  39. port: 3456
  40. git:
  41. root: "/srv/git"
  42. repos:
  43. - path: "git"
  44. slug: "git"
  45. title: "git"
  46. description: "git is a fast, scalable distributed revision control system"
  47. static:
  48. root: ""
  49. prefix: /static/
  50. templates:
  51. dir: ""
  52. ```
  53. # AUTHORS
  54. Maintained by Honza Pokorny <honza@pokorny.ca>, who is assisted by other free
  55. software contributors. For more information about smithy development, see
  56. https://github.com/honza/smithy.