-
Notifications
You must be signed in to change notification settings - Fork 52
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 adr/adr-log#28 #29
Conversation
Thank you so much for taking quick action! I'll try to release a new version soon! Another idea for improvement is that the tool works without toc markings. It can deduct from the structure where the old TOC resides (begins with an item linking to an ADR and ends with a link-to-ADR item followed by a newine) |
I think that this broke something for me. My new links now show up as like: [ADR-0014](../adr0014-aws-roles-and-privileges.md) - AWS Roles and Privileges I am expecting a slash between |
Hey @chrisgilmerproj sorry about that. I will try to fix it today. Can you share the expected markup and if is on Windows or Unix (Marcos, Linux...) |
I think, the expected markup is: [ADR-0014](0014-aws-roles-and-privileges.md) - AWS Roles and Privileges @chrisgilmerproj told about a slash, which would lead to [ADR-0014](../adr/0014-aws-roles-and-privileges.md) - AWS Roles and Privileges I think, this is not the desired result (why go one directory up?) |
running my version of the code (on a mac) with both examples in docs:
./cli.js docs/adr/index.md -d docs/adr/
# <!-- adrlog -- Regenerate the content by using "adr-log -i". You can install it via "npm install -g adr-log" -->
#
# - [ADR-0000](0000-use-markdown-architectural-decision-records.md) - Use Markdown Architectural Decision Records
# - [ADR-0001](0001-extend-markdown-toc.md) - Extend markdown-toc
# - [ADR-0002](0002-use-console-stamp-as-logging-framework.md) - Use console-stamp as logging framework
# - [ADR-0003](0003-use-release-it-and-github-release-from-changelog-as-release-tooling.md) # - Use release-it and github-release-from-changelog for releasing
# - [ADR-0004](0004-filename-as-direct-parameter.md) - Filename as direct parameter
#
# <!-- adrlogstop -->
./cli.js docs/index.md -d docs/adr/
# <!-- adrlog -- Regenerate the content by using "adr-log -i". You can install it via "npm install -g adr-log" -->
#
# - [ADR-0000](adr/0000-use-markdown-architectural-decision-records.md) - Use Markdown Architectural Decision Records
# - [ADR-0001](adr/0001-extend-markdown-toc.md) - Extend markdown-toc
# - [ADR-0002](adr/0002-use-console-stamp-as-logging-framework.md) - Use console-stamp as logging framework
# - [ADR-0003](adr/0003-use-release-it-and-github-release-from-changelog-as-release-tooling.md) - Use release-it and github-release-from-changelog for releasing
# - [ADR-0004](adr/0004-filename-as-direct-parameter.md) - Filename as direct parameter
#
# <!-- adrlogstop --> |
Yep, it used to be:
Now it is:
But I expected the change to give me:
Which is still annoying if my ADR is in the same directory as my |
I am also using this script inside a pre-commit hook which you can see here: https://github.com/trussworks/pre-commit-hooks/blob/master/pre-commit-gen-docs. |
Changelog
var
toconst
:var
tolet
: