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
Document config.preprocessor_priority #55
Document config.preprocessor_priority #55
Conversation
This change is included in 5.0 docs, but it was also available in Karma 4.3 and 4.4. I'm thinking whether we should add 4.1, 4.2, 4.3 and 4.4 documentation versions or is it better to treat 4.0 as 4.x and update 4.0 with docs changes from all minor versions. Probably mentioning somewhere in which minor the specific API was added. Former approach is a bit simpler, but my concern is that version dropdown will grow too fast. @johnjbarton What do you think? |
I added the v4.3 info to this PR. I think that plus the 4.x approach is a good compromise. |
The problem is that all .html files are re-generated from the .md sources on documentation build, so this change will be lost next time we update docs. What you need to do is something like: # Pull .md files from Karma v4.4.1 release into `src/content/4.0` folder and re-generate documentation.
$ ./sync-docs.sh v4.4.1 4.0 Then add relevant since text to the |
And we need to do that for every .x feature documented? |
Going forward, yes. |
So if we go with 4.x.y documentation is the documentation update workflow easier? (In my experience the complexity of the current doc soln is an inhibitor for updates). |
The alternative is to add 4.1, 4.2, 4.3, 4.4 and all future minors to the version dropdown and generate a complete documentation for each minor version. Then workflow is easier:
But we probably gonna make a version dropdown too big pretty fast. I was thinking to do docs updates automatically by adding a plugin to |
On the other hand we can update templates to make the dropdown more compact by putting minor on the same line. Something like: 5.0 I would say let's go with separate documentation for each minor version as it is easier to maintain. I'll submit a PR to make the version dropdown more compact in the coming days. |
I think I did that now. |
So... now this PR needs be merged and the sync-docs run? |
As I said before, changes to HTML files will be overridden on the next documentation update, so no point merging current diff. All content changes should be done in the source Markdown files. The current change is different from what is currently in https://github.com/karma-runner/karma/blob/master/docs/config/04-preprocessors.md. So I would say the way to go is to submit changes from this PR to documentation sources in the Once above are merged you can optionally copy paste the Markdown changes from |
Moved to karma-runner/karma#3673 |
No description provided.