Skip to content

Re-write cli doc update workflow - #245

Draft
ChihweiLHBird wants to merge 1 commit into
spinframework:mainfrom
ChihweiLHBird:zhiwei/cli-update-workflow
Draft

Re-write cli doc update workflow#245
ChihweiLHBird wants to merge 1 commit into
spinframework:mainfrom
ChihweiLHBird:zhiwei/cli-update-workflow

Conversation

@ChihweiLHBird

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>

@itowlson itowlson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for picking this up and making something of it!

exit 1
fi
spin maintenance generate-reference -o "$RUNNER_TEMP/reference.md"
sed -n '1,/^---$/p' "$DOC" > "$RUNNER_TEMP/doc.md"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would value a brief "how it works" comment around here. My guess is that sed is copying the first few lines of the existing doc and then we are catting the Markdown onto that, but I am not sure. Also not clear to my why we generate-to-a-separate-file-then-cat rather than generate-appending as before. Not that it matters, but for understanding.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is only a draft for now. Let me refine things

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