NOTE TO FUTURE CONTRIBUTORS: I plan to merge this package into GNU Elpa or Org source at some point.
So you will need to assign your copyright to FSF in order to get your patches accepted.
As a bonus, once you have assigned your copyright to FSF, doors open up for your future contributions to Emacs too!
See Requirements for doc contributor.
- Clone this repo.
- Add/edit documentation to
doc/ox-hugo-manual.org
. - Run
make doc
.- This generates the Markdown files for the
ox-hugo
documentation site and the .org files likeREADME.org
andCONTRIBUTING.org
for GitHub.
- This generates the Markdown files for the
- Review the changes in the generated .org and .md files.
- Commit only the .org files, push branch and create PR.
- The
.org
→.md
conversion is done byox-hugo
on Netlify.
- The
See Requirements for code contributor.
- Clone this repo.
- Add/edit the .el files, tests in
test/site/content-org/
, and documentation todoc/ox-hugo-manual.org
. - Run
make md doc
. - Review the changes in the generated .org and .md files.
- Ignore the changes shown in
git diff
related to only the randomly generated Org ID’s (likeorg17de7a9
).
- Ignore the changes shown in
- Commit (don’t push your branch yet!).
- As mentioned above, commit only the .org files for documentation.
- Run test:
make -j1 test
(you need togit commit
i.e. do the above step before this step). - Fix your commit(s) if the test fails.. repeat till you succeed.
- Push your feature branch and create PR.
If the ox-hugo
exports do not work as expected, or if you get an
error backtrace,
- Open an Issue.
- Describe the problem you are seeing.
- Provide the debug info:
- Do
M-x org-hugo-debug-info
, That will copy the debug info in Markdown format to the kill ring. So do not manually do any other kill (copy/cut) operation after that! - Paste the Markdown contents in the GitHub issue.
- You can still hit the Preview tab of the Issue before submitting it.
- Do
ox-hugo
is tested using two kinds of test suites:
- Export all the test Org files (includes file-based and subtree-based export tests) to Markdown and diff the exported Markdown against the committed reference versions.
- Run
ert
based tests.
Steps to run tests on your machine:
- Clone this repo.
- Ensure that
pandoc
(at least version *2.16.2*) is installed (more info here). - Run
make -j1 test
. This runs all the tests from the two kinds of test suites described above.
- To run all
ert
based tests, runmake ert
. - To run only the
ert
tests matching a stringfoo
, runmake ert TEST_MATCH=foo
.