-
Notifications
You must be signed in to change notification settings - Fork 14
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
Reading through and updating README.md (attempt 2) #20
Changes from all commits
73ab39c
849bef9
ce221ed
dc70e65
8a7813e
3d2eb3a
a84c464
51001b3
a51aeb2
1aaf328
6a276c5
aace854
587858c
6344391
24106af
3cb57b5
2397f99
e25ff15
03f425d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
* text=auto | ||
README.md merge=union | ||
* text=auto eol=lf merge=union | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There isn't any complicated programming language code here, so I think
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# https://pre-commit.com/ | ||
Mikaela marked this conversation as resolved.
Show resolved
Hide resolved
|
||
repos: | ||
- repo: https://github.com/thlorenz/doctoc | ||
rev: v2.2.0 | ||
hooks: | ||
- id: doctoc | ||
args: [--update-only] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes <!-- START doctoc -->
<!-- END doctoc --> However it looks like all files were doctoced before I enabled it, and I don't know whether non-doctoced are desirable. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
- [Contribution Guidelines](#contribution-guidelines) | ||
- [Updating your PR](#updating-your-pr) | ||
- [pre-commit](#pre-commit) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
|
@@ -32,3 +33,12 @@ edit your PR before we merge it. There's no need to open a new PR, just edit | |
the existing one. If you're not sure how to do that, | ||
[here is a guide](https://github.com/RichardLitt/knowledge/blob/master/github/amending-a-commit-guide.md) | ||
on the different ways you can update your PR so that we can merge it. | ||
|
||
## pre-commit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a feeling I cannot English here. |
||
|
||
Please consider [installing pre-commit](https://pre-commit.com/#installation) | ||
to ensure that the tables of contents are kept up-to-date. | ||
|
||
Once `pre-commit` is installed, please run `pre-commit install` in your | ||
local clone of this repository to have it executed automatically when | ||
`git commit`ing. You can also run it manually by `pre-commit run --all-files`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://editorconfig.org/ configures settings that will apply to multiple text editors just for this repository.
root=true
means that.editorconfig
capable text-editors (see link earlier) won't go looking for configuration from top leve l directories.lf
, which the editors should detect automatically though, as a pair to.gitattributes
eol=lf
and to workaround Unusable as 'pre-commit' hook, since it will always fail. thlorenz/doctoc#161 just in case anyone uses Windows.