Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate ldoc generation #61

Merged
merged 1 commit into from
Jun 23, 2021
Merged

Conversation

idbrii
Copy link
Contributor

@idbrii idbrii commented Jun 23, 2021

#11 mentioned using github actions to generate docs. I did that on some of my repos recently so I thought I'd contribute the same change here. This also introduces the install_and_build_docs script which will install ldoc and build the docs.

Quick version: After every push to master, it will generate docs to gh-pages so they look like this.


Builds docs to the gh-pages branch on every push to master. Also updates
all dead links to point to live ones (or ones that will be live after
this is merged).

Uses three third-party gh actions:

  • leafo/gh-actions-lua@v8
  • leafo/gh-actions-luarocks@v4
  • peaceiris/actions-gh-pages@v3
    • This one receives secrets.GITHUB_TOKEN

Also switches to the new ldoc css and moves doc output folder to
./doc/out which is less confusing when configuring than ./doc/doc.

Once merged, docs will be available on https://excessive.github.io/cpml/

Currently, you can see the built docs on https://idbrii.github.io/love-cpml/

Related excessive#11.

Builds docs to the gh-pages branch on every push to master. Also updates
all dead links to point to live ones (or ones that will be live after
this is merged).

Uses three third-party gh actions:

* leafo/gh-actions-lua@v8
* leafo/gh-actions-luarocks@v4
* peaceiris/actions-gh-pages@v3
 * This receives secrets.GITHUB_TOKEN

Also switches to the new ldoc css and moves doc output folder to
./doc/out which is less confusing when configuring than ./doc/doc.

Once merged, docs will be available on https://excessive.github.io/cpml/

Currently, you can see the built docs on https://idbrii.github.io/love-cpml/
@shakesoda shakesoda merged commit 7a7e748 into excessive:master Jun 23, 2021
@shakesoda
Copy link
Member

thanks! this is really helpful

@idbrii idbrii deleted the automate-docs branch June 23, 2021 22:57
@idbrii
Copy link
Contributor Author

idbrii commented Jun 23, 2021

@shakesoda Do you want to add http://excessive.github.io/cpml/ as the website in About to make the link more prominent?

@shakesoda
Copy link
Member

@shakesoda Do you want to add http://excessive.github.io/cpml/ as the website in About to make the link more prominent?

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants