11 Commits

Author SHA1 Message Date
Mike McQuaid
13c67e2703
docs/vale-styles: fix configuration.
Use new scope syntax and fix errors.
2023-07-25 15:28:29 +01:00
EricFromCanada
d9ef454528
CI: add docs.yml
With fixes for Markdown syntax to allow tests to pass.
2022-11-26 10:28:12 -05:00
Mike McQuaid
e1120549e5
Cleanup more linuxbrew-core code
- Add the same macOS `--build-from-source` default prefix behaviour
  now we have ~4000 linuxbrew-core bottles.
- Merge remaining useful linuxbrew-core-Maintainer-Guide into
  Homebrew-homebrew-core-Maintainer-Guide
- Don't special-case linuxbrew-core any more in docs
2021-10-21 09:00:22 +01:00
Rylan Polster
ba22ec6447
docs: update vale config with new titles 2021-05-14 14:04:09 -04:00
Mike McQuaid
c1ff5efb5a
docs/vale-styles/Homebrew/Titles: fix Linux reference. 2020-11-16 13:59:45 +00:00
Issy Long
c0642e1b84
vale-styles: Upgrade all checks to "error" level
- I added these all the way back in December 2019 in #6826, but only
  today realised that things have been failing unnoticeably because
  "warning" level exits with status code 0, so doesn't fail CI.
- Upgrading to "error" level will enable us to see the style errors in
  our docs and fix them faster.
- My editor also auto-formatted the YAML to have double quotes instead
  of single.
2020-10-21 21:10:50 +01:00
Issy Long
d214d5656c
vale-styles: Add "macOS" to the titlecase exceptions list
- Otherwise this surfaces an error and suggests a fix that doesn't match
  Apple's branding.
2020-10-21 21:10:49 +01:00
Mike McQuaid
ac0665daff
Refer to default branch in links with HEAD
Anywhere we can use `blob/master` we can use `blob/HEAD` instead. This
will make life easier if we ever rename our default branch in future
(once/if Git and GitHub provides the necessary tooling to do so).
2020-06-25 11:38:40 +01:00
Issy Long
dac41ba275
Scope the Vale "terms" substitution lint to paragraphs only
- This clears up the final four title-case "Pull Request" in titles,
  which are correct.
2019-12-18 16:09:07 +00:00
Issy Long
a5ffdc6c5a
Use Title Case in h1 headings and sentence case in all others
- I wrote about the implications of (not) doing this in the PR
  (https://github.com/Homebrew/brew/pull/6826#issuecomment-564273209),
  but in summary:

  - It looks like pretty much the only place we've ever adhered to the
    sentence case rule is the Prose Guidelines itself.
  - Correcting all these to sentence case would be a lot of work (and
    sometimes not even make sense).
  - Admittedly, some of the title case ones look a bit horrible, but
    even with some allowed exceptions, but it's better than being
    consistently inconsistent.
  - Only lint for title case in h1 headings. H2s and H3s etc. can be
    sentence case. There's not currently a lint for that.
2019-12-18 16:09:07 +00:00
Issy Long
2a53448685
Add Vale linting for our docs
- I noticed that another open source project had taken the Homebrew
  style guide and made it into [Vale linting
  rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew).
  This copies them into here, so that we can make use of them. Thanks!
- What use is a style guide if our own docs don't at least try to
  adhere to it? This aims to make the rules more visible to all
  contributors.
- In order for these to do anything, you'll have to `brew install vale`
  and run `vale` in the root of this repo. It will look for Markdown
  files.
- A next step would be adding this as a pre-commit hook, or...
- The GitHub Action would have been really good, but [it doesn't support
  forks](https://github.com/errata-ai/vale-action#limitations).
2019-12-17 21:42:53 +00:00