-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add markdownlint support #740
Conversation
503d186
to
1080a4c
Compare
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
6 similar comments
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
d1e13ca
to
635ae5a
Compare
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
- Added markdownlint via npm, and added a basic configuration file. At the moment I've just setup the defaults, but disabled the line length rule for code blocks and tables. - Updated the contributing guide to include information on running it. - Added a new stage to the build pipeline to run the linting. Fixes tomkerkhove#453
I've tried to only fix the issues highlighted by markdownlint in this commit, and keep the files as close as possible to how they were before these changes, although I did fix a couple of typos that I spotted as I was going through. I've had to increase the heading level by one on most of the files because they had multiple h1s.
d696063
to
e7aabb7
Compare
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Sorry about all the noise in this PR - it took me a while to get the command running properly in Azure Pipelines. Here's an example failing build: https://tomkerkhove.visualstudio.com/Promitor/_build/results?buildId=1511&view=logs&j=a0162c90-9618-5d58-2cc8-c63b24381f83&t=50aea722-6967-5a54-fc98-844cbba5a109&l=15 |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Thanks for the PR @adamconnelly! Is there a reason why the guideline is to only have x characters on one line?
I'd suggest to create a dedicated issue for this discussion, is that ok for you? But for now locally this will not be enforced until you create a PR where the linting is happening, is that correct? If so, do we still need the edit to |
No worries, thanks! |
I think the 80 character limit is just to make the files readable when you're viewing them in a text editor, rather than in a browser. If you view the docs in GitHub or on the site, it word wraps and enforces a gutter on either side to make them readable, but if you view them in a text editor it won't necessarily do that, so you can end up with really long lines. But it's just a default setting, so we can change it if you want. |
@tomkerkhove I've just pushed another commit that reverts the change to CONTRIBUTING.md, renamed the pipeline steps and adds information on running markdownlint to the docs README. You're correct - it'll only run in CI, or if you manually run |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr740 Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr740 \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr740 You can find a CI version of our Helm chart on hub.helm.sh |
Thanks Adam! |
Fixes #453
Proposed Changes
At the moment I've just setup the defaults, but disabled the line
length rule for code blocks and tables.
@tomkerkhove I didn't want to take this too far, but I've got another couple of suggestions: