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

[CI] Handle creation of empty Hugo-modules for deps #2128

Merged
merged 11 commits into from
Nov 19, 2024

Conversation

chalin
Copy link
Collaborator

@chalin chalin commented Nov 19, 2024

  • Contributes to [CI] Docsy NPM-package: global install fails as of 0.8.0 #2122
  • This is a refactoring in support of https://www.docsy.dev/docs/get-started/other-options/#docsy-npm-install-side-effect
  • Introduces a bash script to replace the simple call to npx mkdirp. The script gives us more flexibility. It can be run to create empty directories for Docsy Hugo-module deps, for projects not using Hugo modules. The script accepts a path as an argument, which will make it easier to apply more generally. Also, setting DOCSY_MKDIR_HUGO_MOD_SKIP to any value will allow that postinstall action to be skipped.
  • Updates the docs to explain the postinstall script behavior, and how power-users can disable it.
  • Drops the dependency on the mkdirp NPM package

@chalin chalin added the CI/infra CI & infrastructure label Nov 19, 2024
@chalin chalin changed the title [CI] Handle creation of empty Hugo-modules for deps via a bash script [CI] Handle creation of empty Hugo-modules for deps Nov 19, 2024
@chalin chalin merged commit 97dadaa into google:main Nov 19, 2024
11 checks passed
@chalin chalin deleted the chalin-im-mkdirp-2024-11-19 branch November 19, 2024 23:48
@chalin chalin added this to the 24Q4 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant