-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix API reference snippets #5368
Comments
Hi @Youssef1313 Could you please provide more clarification where you were seeing these build warnings and which files are being affected in Docs. Is it just the API docs or the conceptual docs as well? |
@luisquintanilla The build warnings appear in my test PR. Check https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.staticpipe.countfeatureselectorstaticextensions.selectfeaturesbasedoncount?view=ml-dotnet-preview-0.14.0 to see the issue on live docs: |
The problem is this folder doesn't contain a folder called "Static". It was deleted at some point. The last release branch that contains this folder is: https://github.com/dotnet/machinelearning/tree/release/1.2/docs/samples/Microsoft.ML.Samples |
Thanks for the clarification. |
@Youssef1313 thanks for finding this. After discussing this with @luisquintanilla it appears like when we are building our documentation, the build is always trying to reference the latest branch. This is causing the issues that you pointed out in the PR you created because those files have been removed. Fixing it manually won't resolve the issue as this situation will continue to happen as code is moved and documentation is regenerated. We need to actually fix the issue in the documentation generation process itself. Unfortunately, I don't know enough about that to resolve it or even have an estimate on how hard that would be to do. I will need to discuss with others on my team about it. So for now, I am going to tag this as a bug and leave it open so we can keep track of it. |
@michaelgsharp You can specify a specific branch. I actually tried that. But another snippets that exists in master and not in release/1.2 generated the same issue. Basically, there is no "one" branch containing all the snippets. If you can create a new branch, call it |
That makes sense. Basically our 2 options are to create 1 branch that has everything, or change the build process to be able to specify a branch for each sample. Does that sound like an accurate statement? |
@michaelgsharp A branch for each sample would be hard I think. (AFAIK, the repo configuration only supports specifying a whole branch external repo referencing - But as I'm not a Microsoft employee, I'm not 100% sure) So, creating 1 branch that has everything is the available easy thing. |
Thank you for raising this @Youssef1313, and for investigating @michaelgsharp and @luisquintanilla. We decided to host all versions of the ML.NET API docs, but the build system does not support this for previous versions of docs that contain code snippets which do not exist anymore. I think the answer is to only host the docs for the latest ML.NET version. Please let me know if you are aware of any customers who need access the previous versions, or any other reason why we should not take this course of action. |
@natke I really don't know whether any customer will need access to the previous versions. |
We've removed the historical preview versions, so this issue is now resolved. |
The API reference repository doesn't have issues turned on, so I think it might be suitable here, especially that the broken snippet references used to exist in this repository, but now they don't (or moved somewhere that I can't find).
See dotnet/ml-api-docs#142 for details.
cc: @luisquintanilla
The text was updated successfully, but these errors were encountered: