-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Remove docs
directory from codebase
#1750
Comments
How are you going to modify this file to make sure Talawa-Docs gets updated without the |
The workflow will run as usual and the docs will be copied as expected. We just won't save the output doc anywhere in the Talawa Codebase. Just like the Build workflow builds and generates apk for Android, but we never actually save it anywhere (though we have opened a new issue for it, to explicitly save the build). |
@anwersayeed Please review this PR when it's submitted. |
@literalEval Please create a PR for the substitute option you are recommending before deleting the |
@anwersayeed sure |
@anwersayeed can you please confirm whether the update docs workflow works for now or not? I can't see it updating the documentation in Edit: A closer look at the workflow reveals that the files are no copied at all. Like in this PR workflow run, docs were changed a bit, but the workflow run says that "No changes detected". @anwersayeed please correct me if I am wrong. |
@literalEval It commits only when it detects any change in the documentation! |
@anwersayeed that I understand :) |
@literalEval We have a folder |
@anwersayeed Oh okay. So we generate the docs, match them with the ones in the |
Checkout this workflow, |
Yeah, we cannot commit without any changes. |
How about we match the doc generated during workflow build, and the one in the |
Perfect, that is what I initially thought. Please go ahead. |
@anwersayeed but the current implementation too seems to be trying to do this. According to the above snippet, the documentation is generated and then we check whether it changed any files or not. That should do be doing its job at least, because the logic to check changes is also correct. I doesn't depend on the contributor to do so. Why does it show "no doc change" then ? |
@anwersayeed @palisadoes The |
@palisadoes I fixed this locally. We don't need the |
Currently, we have a
docs
folder in the root of the codebase, which contains the documentation generated bydart doc
. This issue proposes to remove this directory entirely.The reasons can be explained as:
dart doc
on the go. Anyone can do this on their local machine.Talawa-docs
The text was updated successfully, but these errors were encountered: