Giter Club home page Giter Club logo

Comments (4)

norwoodj avatar norwoodj commented on July 26, 2024

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.

nvtkaszpir avatar nvtkaszpir commented on July 26, 2024

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.

Artus-LHIND avatar Artus-LHIND commented on July 26, 2024

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.

norwoodj avatar norwoodj commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.