Skip to content
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 website code highlighting #6427

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .yarn/versions/139fa2fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declined:
- "@yarnpkg/plugin-nm"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ To see a comprehensive documentation about each possible field, please check our

- The `resolutions` field no longer support the glob syntax within its patterns, as it was redundant with its own glob-less syntax and caused unnecessary confusion.

```diff-json
```diff
{
"resolutions": {
- "**/@babel/core": "7.5.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus/blog/2020-01-24-release-2.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ To give you an idea, we've built a [typescript plugin](https://github.com/yarnpk

One very common piece of feedback we got regarding Yarn 1 was about our configuration pipeline. When Yarn was released we tried to be as compatible with npm as possible, which prompted us to for example try to read the npm configuration files etc. This made it fairly difficult for our users to understand where settings should be configured.

```yml
```yaml
initScope: yarnpkg
npmPublishAccess: public
yarnPath: scripts/run-yarn.js
Expand All @@ -328,7 +328,7 @@ Packages aren't allowed to require other packages unless they actually list them
// Error: Something that got detected as your top-level application
// (because it doesn't seem to belong to any package) tried to access
// a package that is not declared in your dependencies
//
//
// Required package: not-a-dependency (via "not-a-dependency")
// Required by: /Users/mael/my-app/
require(`not-a-dependency`);
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus/blog/2021-09-25-release-3.1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Yarn 3.1 features a new optimization that kicks in when a package is listed as `

In case you need to manually configure a strict set of package architectures to support (for example like in a zero-install case, where you want to read from an immutable set of packages), you can use the `supportedArchitectures` setting:

```yml
```yaml
supportedArchitectures:
os: [linux, darwin]
cpu: [x64, arm64]
Expand All @@ -84,7 +84,7 @@ yarn workspaces foreach --since run eslint .
yarn workspaces list --since
```

The `--since` flag also accepts an optional argument (`--since=${commit-ish}`) to manually define a source from which the changes should be derived.
The `--since` flag also accepts an optional argument (`--since=${commit-ish}`) to manually define a source from which the changes should be derived.

### New Workspace Syntax: `workspace:^`

Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/docs/getting-started/extra/recipes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ touch nm-packages/myproj/yarn.lock
yarn --cwd packages/myproj config set nodeLinker node-modules
```
- Add a PnP ignore pattern for this path in your main `.yarnrc.yml` at the root of your monorepo:
```yml
```yaml
pnpIgnorePatterns:
- ./nm-packages/**
```
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default async function (): Promise<Config> {
prism: {
theme: themes.github,
darkTheme: themes.dracula,
additionalLanguages: [`bash`, `json`],
additionalLanguages: [`bash`, `diff`, `ignore`, `lisp`, `json`, `prolog`],
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-nm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This plugin adds support for installing packages through a `node_modules` folder

This plugin is included by default in Yarn 2, but is still considered experimental. For this reason, you must enable it manually by adding the following to your `.yarnrc.yml` file:

```yml
```yaml
nodeLinker: node-modules
```

Expand Down
Loading