-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
HTML Json schema docs not updated on deploy #1287
Comments
Good catch @echoix :) I added JSON Schema HTML doc generation when |
And will this fix the issue that it only built on the beta docs? The Also, what could be the fix for the correct versioning URLs for the schema docs? I see that in the .md files have their links generated by the build.py, but I'm not certain yet if the links rewriting will work for any URL, or this works only for .md files (since there seems to be an additional docs build tool for the release). How should a link be made in the |
In fact, the "fix" doesn't seem to have worked, and a conceptual error caused the rest of the First since there is a To isolate the effects of not restoring the current path when an error occurs, we could use a subshell (calling the The main error, why did the middle command fail?
We know that Before looking at where or how to install If it really needs to have the build.sh script run inside the container, then installing Footnotes |
I now remember why I did not put such generation everywhere... it's because even if the json schema does not change, the generated HTML is different everytime I will rollback the evolution, as I think most of the times the regeneration is useless... and as the json schema is not versioned (only version in branch main is used), the HTML should be regenerated only when the json is updated |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Describe the bug
The latest json schema docs generated by json-schema-for-humans aren't accessible from https://megalinter.github.io .
To Reproduce
Steps to reproduce the behavior:
linter_spdx_license
property added in Add license in all linters documentation #977 in November 11 2021, it doesn't exist.linter_spdx_license
to find.Other implications:
linter_spdx_license
later on the same day, as seen on the screenshot below.<p class=generated-by-footer>Generated using <a href=https://github.com/coveooss/json-schema-for-humans>json-schema-for-humans</a> on 2021-01-03 at 19:17:48 +0100</p>
Expected behavior
Have the correct JSON schema built and deployed, and if it is expected, to have the up to date version in the repo, since the jsonschema links back to our file (the json one, not HTML though) in the main branch.
Screenshots
If applicable, add screenshots to help explain your problem.
https://megalinter.github.io/beta/json-schemas/descriptor.html#linters_items_linter_spdx_license :
https://github.com/megalinter/megalinter/commits/main?after=bbac3d189baf2154f77b43aca017f377e97627ab+174&branch=main:
https://github.com/megalinter/megalinter/runs/5046667907?check_suite_focus=true:
Additional context
I tried to investigate the CI workflows, but it quickly became too complicated to understand what is what, and why each of the 26 workflow runs or not.
I suspect that the loss happens with "when" the
build_schemas_doc.sh
is run in the workflow between the steps, that results in that new file not being included. I'm not sure if the 00.297013 seconds to build that page is normal or not, but for the configuration it is more like 2 seconds, so that makes sense. But in both cases, this file isn't committed in the main repo. The build script that updates everything including the tables doesn't seem to runbuild_schemas_doc.sh
in.automation/build_schemas_doc.sh
The text was updated successfully, but these errors were encountered: