Skip to content

feat: publish docs from ci, add ga to docs#163

Merged
mnahkies merged 4 commits intomainfrom
mn/feat/website-ci
Apr 29, 2024
Merged

feat: publish docs from ci, add ga to docs#163
mnahkies merged 4 commits intomainfrom
mn/feat/website-ci

Conversation

@mnahkies
Copy link
Copy Markdown
Owner

No description provided.

Comment thread .github/workflows/ci.yml
# with:
# fetch-depth: ''
with:
fetch-depth: 0
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Required for Nextra modification time

[nextra] The repository is shallow cloned, so the latest modified time will not be presented. See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches to fetch all the history.

"extends": "next/core-web-vitals",
"settings": {
"next": {
"rootDir": "packages/documentation/"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixes

Pages directory cannot be found at /home/runner/work/openapi-code-generator/openapi-code-generator/pages or /home/runner/work/openapi-code-generator/openapi-code-generator/src/pages. If using a custom path, please configure with the `no-html-link-for-pages` rule in your eslint config file.

@@ -1,5 +1,5 @@
{
"name": "documentation",
"name": "@nahkies/openapi-code-generator-documentation",
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Includes in the build / ci-build command

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Use as restrictive settings as possible

@mnahkies mnahkies enabled auto-merge (squash) April 29, 2024 18:54
@mnahkies mnahkies merged commit f935bb5 into main Apr 29, 2024
@mnahkies mnahkies deleted the mn/feat/website-ci branch April 29, 2024 18:54
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.

1 participant