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

Add GitHub Actions and custom dir sections to Publish doc page #160

Conversation

matyasjay
Copy link
Contributor

I guess it is a good idea to have these in the docs for future reference.

@matyasjay matyasjay changed the title Add GitHub Action and custom dir sections to Publish doc page Add GitHub Actions and custom dir sections to Publish doc page Nov 1, 2024
## Custom build directory

You can set a custom build directory instead of the default `build` if needed by passing the `--out-dir` argument to `moonwave build` command.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make more sense to mention the --out-dir flag briefly here instead of creating a new section for it. Just something saying, "Or you can specify --out-dir [path] to set the build directory to a different path"

@@ -13,6 +13,21 @@ If you are using git and Github pages, you can publish your doc website with one

Otherwise, you can run `moonwave build`, and your built website will be in a folder called `build` in your project directory.

## Using GitHub Actions

When you publish your doc via GitHub Actions you might need to provide the author details and GitHub token.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't actually need to provide your own email and username, you can just provide the GitHub Actions username and email, github-actions-bot and [email protected].

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah maybe you're right. I assumed the same (usually works fine with mock bot address) but got "Failed to get the author data" errors. Maybe it was just me and by default the workflow is just fine with mock author data.

When you publish your doc via GitHub Actions you might need to provide the author details and GitHub token.

```yaml
- name: Publish
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would include the full example of a Moonwave GitHub Action, and move it down on the page since it has low importance. It's nice to include a working example of things to prevent confusion, we can also specify where they should put this in their repository in the description for this section.

@YetAnotherClown
Copy link
Collaborator

I left some suggestions, not strictly necessary but would improve on the work you've started. Feel free to update the PR with the suggestions in mind- or don't. Thanks for your contributions.

@matyasjay
Copy link
Contributor Author

Hey @YetAnotherClown, thanks for the quick feedback! I made the changes accordingly, all makes sense to me.

@YetAnotherClown YetAnotherClown merged commit 2b6c7f5 into evaera:master Nov 16, 2024
1 check passed
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