Skip to content

Conversation

@aidanfnv
Copy link
Contributor

@aidanfnv aidanfnv commented May 10, 2025

For shader-slang/slang#7021

This change adds the slangc command line reference to the ReadTheDocs site, replacing the link to the .md file in the repo.

The current doc is encoded as UTF-16LE, unlike our other docs in UTF-8, and although my other change for this issue (shader-slang/slang#7048) does have a regenerated version in UTF-8, this change also adds a pre-processing step to the RTD build that re-encodes any UTF-16LE doc to UTF-8 just in case.

@aidanfnv aidanfnv requested a review from jkwak-work May 10, 2025 01:33
Copy link
Contributor

@jkwak-work jkwak-work left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Is the doc going to be updated automatically or periodically when we modify the helpmessage?

@aidanfnv
Copy link
Contributor Author

I still need to figure out how this doc will be updated in the future. Since slangc needs to be built beforehand to generate this, it would be ideal to do that somehow in the CI action. Perhaps the CI action can check if the file is up to date during a PR and fail if the author needs to regenerate it, similar to the TOC regeneration, or it could be an automatic update by a bot in an action that only runs on merges to master.

@aidanfnv
Copy link
Contributor Author

I added the regeneration actions in shader-slang/slang#7048

@aidanfnv aidanfnv merged commit 5538f2a into shader-slang:main May 14, 2025
@aidanfnv aidanfnv deleted the fix/readthedocs-cmdline branch May 14, 2025 19:26
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