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

Automate the documentation link change #66

Open
SelvinPL opened this issue Feb 4, 2025 · 1 comment
Open

Automate the documentation link change #66

SelvinPL opened this issue Feb 4, 2025 · 1 comment

Comments

@SelvinPL
Copy link
Contributor

SelvinPL commented Feb 4, 2025

For now you need changes like this

What if we could automate this?

Solution

in bash.sh add

VITE_RGBDS_VERSION=$(git --git-dir=rgbds/.git -c safe.directory='*' describe --tags --always)

in index.html

<a href="https://rgbds.gbdev.io/docs/%VITE_RGBDS_VERSION%" target="_blank">rgbds manual</a>

I would create PR as soon as I would get feedback on "Automate updating rgbds to new version?"(as now it show how it may works and needs master branch)

@SelvinPL
Copy link
Contributor Author

SelvinPL commented Feb 4, 2025

I've test this locally and yes, vite build changes this variable to proper rgbds version

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

No branches or pull requests

1 participant