/README.md

http://github.com/perlorg/cpanorg · Markdown · 53 lines · 36 code · 17 blank · 0 comment · 0 complexity · 0900d88fdac4f254cf7b985ccbdae8fa MD5 · raw file

  1. # CPAN.org content repository
  2. This repository is for maintaining the non-source-code, non-archive
  3. content on cpan.org. Discussion related to this should be on the
  4. [cpan-workers mailing list][cpan-workers].
  5. [cpan-workers]: http://lists.perl.org/list/cpan-workers.html
  6. ## Rules for editing content:
  7. * Don't add new output files. Only files already on cpan.org should be
  8. added (and then to their current location). Generally email
  9. ask@perl.org to get new files included here. Making new
  10. templates/scripts/etc to produce the output files is fine.
  11. * Be conservative in your edits. While lots of updates are needed,
  12. this has been around for 20 years and will be for many more. There's
  13. no rush.
  14. * No style edits for now. Cleanups yes; but a new design/layout will
  15. wait.
  16. ## How to submit changes
  17. A 'pull request' on github is the best way. Sending a patch to the
  18. cpan-workers list at the same time will be a good way to get peer
  19. review. A change with a few "+1" votes from the list are more likely
  20. to be expediently pulled in.
  21. ## How it works
  22. Install Template Toolkit and the other requirements with `cpanm` by running `make install`.
  23. To fetch the data needed for the site, run `make update-data update-daily`.
  24. Then run `make`. This will in turn run `ttree` and generate output
  25. files in the html/ directory.
  26. Image files are copied plainly to the html/ directory.
  27. Everything else is processed through template toolkit. Only .html
  28. files get the "master template" applied automatically.
  29. ## Run under docker
  30. Experimental, you can build the content from theses templates with:
  31. mkdir -p root/tmp root/CPAN
  32. docker run --rm -ti \
  33. -v `pwd`:/cpan/content -v `pwd`/root:/cpan \
  34. -w /cpan/content \
  35. quay.io/perl/cpanorg:master \
  36. make build update-data update-master