chore: Refactor docs to work with docs.eslint.org#15744
Merged
mdjermanovic merged 4 commits intomainfrom Apr 6, 2022
Merged
Conversation
aladdin-add
approved these changes
Mar 31, 2022
mdjermanovic
reviewed
Apr 1, 2022
mdjermanovic
reviewed
Apr 2, 2022
| echo("> Copying the docs folder (Step 3)"); | ||
| cp("-rf", "docs/*", TEMP_DIR); | ||
| docFiles.forEach(filePath => { | ||
| cp("-rf", `docs/src${filePath}*`, `${TEMP_DIR}/${filePath}`); |
Member
There was a problem hiding this comment.
I'm getting Error: cp: dest is not a directory (too many sources) here.
`${TEMP_DIR}/${filePath}` evaluates to ./tmp///rules/, there are two extra slashes.
Member
|
We should update edit links, too: Line 700 in f535e15 For example, this evaluates to |
Member
Author
|
Oh nice catch. I've updated the edit links and fixed the copying. |
crapStone
pushed a commit
to Calciumdibromid/CaBr2
that referenced
this pull request
Apr 9, 2022
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`8.12.0` -> `8.13.0`](https://renovatebot.com/diffs/npm/eslint/8.12.0/8.13.0) | --- ### Release Notes <details> <summary>eslint/eslint</summary> ### [`v8.13.0`](https://github.com/eslint/eslint/releases/v8.13.0) [Compare Source](eslint/eslint@v8.12.0...v8.13.0) #### Features - [`274acbd`](eslint/eslint@274acbd) feat: fix no-eval logic for `this` in arrow functions ([#​15755](eslint/eslint#15755)) (Milos Djermanovic) #### Bug Fixes - [`97b57ae`](eslint/eslint@97b57ae) fix: invalid operator in operator-assignment messages ([#​15759](eslint/eslint#15759)) (Milos Djermanovic) #### Documentation - [`c32482e`](eslint/eslint@c32482e) docs: Typo in space-infix-ops docs ([#​15754](eslint/eslint#15754)) (kmin-jeong) - [`f2c2d35`](eslint/eslint@f2c2d35) docs: disambiguate types `FormatterFunction` and `LoadedFormatter` ([#​15727](eslint/eslint#15727)) (Francesco Trotta) #### Chores - [`bb4c0d5`](eslint/eslint@bb4c0d5) chore: Refactor docs to work with docs.eslint.org ([#​15744](eslint/eslint#15744)) (Nicholas C. Zakas) - [`d36f12f`](eslint/eslint@d36f12f) chore: remove `lib/init` from eslint config ([#​15748](eslint/eslint#15748)) (Milos Djermanovic) - [`a59a4e6`](eslint/eslint@a59a4e6) chore: replace `trimLeft`/`trimRight` with `trimStart`/`trimEnd` ([#​15750](eslint/eslint#15750)) (Milos Djermanovic) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot <cabr2.help@gmail.com> Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1296 Reviewed-by: crapStone <crapstone@noreply.codeberg.org> Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org> Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
srijan-deepsource
pushed a commit
to DeepSourceCorp/eslint
that referenced
this pull request
May 30, 2022
* chore: Refactor docs to work with docs.eslint.org * Fix Makefile.js * fix copying of files * Fix edit links and copying commands
srijan-deepsource
added a commit
to DeepSourceCorp/eslint
that referenced
this pull request
May 30, 2022
…)" This reverts commit 97e0137.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
Refactored docs structure.
What changes did you make? (Give an overview)
I reorganized the docs folder in preparation for the new docs.eslint.org. Mostly, this meant moving the markdown files from directly under
docsto inside ofdocs/src. I did rename a couple of files and then updatedMakefile.jsto ensure it's reading from the correct locations and copying to the correct locations during a release.This is just the first step to help make these files compatible with docs.eslint.org.
Is there anything you'd like reviewers to focus on?
Did I miss anything?