Skip to content

Conversation

@joshbax189
Copy link
Contributor

Suggested change in other PR. See review comments on code.

@github-actions github-actions bot added the CI label Mar 21, 2025
Copy link
Contributor Author

@joshbax189 joshbax189 left a comment

Choose a reason for hiding this comment

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

Just some notes for checking

run: |
npm install
npm run build
run: curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz --strip-components=1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is more of a suggestion. Per the geekdoc docs, since you are just using the standard theme, I think you can save most of the time in this step by just using the pre-built tarball here.

If you like it (and it works) I can remove the submodule for geekdocs too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

publish-doc
succeeded 8 minutes ago in 10s

Oh yeah!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked it locally by:

  • running the curl command in docs/themes/geekdocs
  • starting hugo using a container (run in the docs directory): docker run --network=host --mount type=bind,source=.,destination=/mine/ -w /mine peaceiris/hugo:v0.134.2 server
  • visit the ip address it suggests

Looks like the theme is loaded correctly.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for the suggestion! I appreciate it, but I prefer using the old method as it’s more reproducible for me. 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked it locally

BTW this was just my way of avoiding installing hugo, and guaranteeing the versions matched upstream.

For local development, you could absolutely keep the submodule method. It would match this one unless you switched to a different branch on the hugo-geekdoc repo.

Could also put the curl command into a Make rule that matches what happens in this file, so (assuming you have hugo locally), you just do make docs: https://geekdocs.de/usage/getting-started/#use-a-makefile

Copy link
Member

Choose a reason for hiding this comment

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

BTW this was just my way of avoiding installing hugo, and guaranteeing the versions matched upstream.

For local development, you could absolutely keep the submodule method. It would match this one unless you switched to a different branch on the hugo-geekdoc repo.

I see the YAML file as more of a reference for setting up the environment. I also want to eliminate other potential variables to improve the debugging experience. While this approach may increase CI runtime, it’s a trade-off that will save me time in the long run. 🤔

I guess I'm being a bit selfish here... but I might change my mind in the future. 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries. Can always refer back to this! Will drop this commit

@joshbax189
Copy link
Contributor Author

Hmm.. maybe all the other CI workflows should ignore some changes too?

@joshbax189 joshbax189 mentioned this pull request Mar 21, 2025
10 tasks
@jcs090218
Copy link
Member

Hmm.. maybe all the other CI workflows should ignore some changes too?

You're absolutely right! This has been on my to-do list, but I never got around to it. 😅

@joshbax189 joshbax189 force-pushed the fix/docs-ci-no-publish branch from ac388fb to 7a7ab89 Compare March 23, 2025 20:54
@jcs090218 jcs090218 merged commit 7c6205b into emacs-eask:master Mar 23, 2025
174 checks passed
@jcs090218
Copy link
Member

LGTM! Thank you so much for your hard work! 🥳 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants