Comments (4)
Hey @Arabus, I had not ever thought to lint the generated markdown, which probably would have been a good thing to do looking back on it...
Most of these line-length warnings are probably not reparable, unless you know a way to split table rows across multiple lines. Other than that though, I think sprucing up the template a bit so that most of these issues go away is a very good idea, and I'd be happy to review a PR if you want to make one.
Thanks for the interest, and I'm glad you're finding the tool helpful.
from helm-docs.
You could just expand default README.md.gotmpl with markdown linter tags to ignore certain rules for specific code sections. Notice, though, that there is a bit more rules to adjust.
Example below - line length for values section or bare urls:
{{ template "chart.header" . }}
{{ template "chart.description" . }}
{{ template "chart.versionLine" . }}
{{ template "chart.sourceLinkLine" . }}
{{ template "chart.requirementsSection" . }}
<!-- markdownlint-capture -->
<!-- markdownlint-disable MD013 MD034 -->
{{ template "chart.valuesSection" . }}
<!-- markdownlint-enable MD013 MD034 -->
<!-- markdownlint-restore -->
The main drawback is that the <!-- code persists within .md files so reading raw content may be sometimes unpleasant, so it is better to render .md to .html for better representation.
from helm-docs.
I refactored a little bit and applied 2 regex'es eliminating trailing spaces, multiple empty lines (3+) and some more restyling for better compatibility with MarkDownLint.
from helm-docs.
I think you've fixed most things, @Artus-LHIND. Thanks for the contribution, I'll close this for now. Reopen if there are still issues.
from helm-docs.
Related Issues (20)
- Support for creating docs of named templates in library charts HOT 1
- Ignore comment HOT 1
- feature: output results as json (or other formats) HOT 2
- feature request: "Strict mode" HOT 6
- Implement something like helm's `include` function
- Pipe `|` breaks table output of `values.yml`
- helm-docs as pre-commit marked as failed but successfully replaces files HOT 1
- Add support for conditional dependencies
- Output docs for values that are commented out HOT 4
- helm-docs write extra empty line HOT 5
- Q&A - Auto sorting HOT 2
- custom template not defined error
- General Cleanup
- Notation annotation ignored when value is null
- How to document a list of objects?
- v1.11.1 does not have a release HOT 2
- helm-docs for helmfile HOT 2
- @latest produces different files than last release (1.11.0), missing a newline at the end of file HOT 4
- How to ignore dependency/Requirement list? HOT 1
- Not an issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-docs.