Skip to content

Commit 76da6e9

Browse files
Merge branch 'main' into dependabot/github_actions/peter-evans/create-pull-request-7.0.9
2 parents bb53228 + 50b7f07 commit 76da6e9

File tree

169 files changed

+8091
-5342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+8091
-5342
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build-test-deploy:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1616
with: { persist-credentials: false }
1717
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1818
with:

.github/workflows/bundle-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1717

1818
- name: Setup Node.js
1919
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0

.github/workflows/create-bumb-version-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
shell: bash
1818
steps:
1919

20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2121
with:
2222
fetch-depth: 0
2323
ref: main

.github/workflows/publish-style-spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run:
1414
shell: bash
1515
steps:
16-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1717
with:
1818
fetch-depth: 0
1919
ref: main
@@ -44,7 +44,7 @@ jobs:
4444
if: ${{ needs.release-check.outputs.publish == 'true' }}
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
47+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4848
with:
4949
fetch-depth: 0
5050
persist-credentials: false

.github/workflows/test-all.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
contents: read
1515
steps:
16-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1717
with: { persist-credentials: false }
1818
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1919
with:
@@ -29,7 +29,7 @@ jobs:
2929
permissions:
3030
contents: read
3131
steps:
32-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3333
with: { persist-credentials: false }
3434
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
3535
with:
@@ -53,7 +53,7 @@ jobs:
5353
permissions:
5454
contents: read
5555
steps:
56-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
56+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5757
with: { persist-credentials: false }
5858
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
5959
with:

.oxfmtrc.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"tabWidth": 4,
4+
"singleQuote": true,
5+
"bracketSpacing": false,
6+
"trailingComma": "none"
7+
}

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# MapLibre Style Specification & Utilities
77

8-
[![NPM Version](https://badge.fury.io/js/@maplibre%2Fmaplibre-gl-style-spec.svg)](https://npmjs.org/package/@maplibre/maplibre-gl-style-spec)
8+
[![NPM Version](https://badge.fury.io/js/@maplibre%2Fmaplibre-gl-style-spec.svg)](https://npmjs.org/package/@maplibre/maplibre-gl-style-spec)
99
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg?style=flat)](LICENSE.txt) [![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://opensource.org/licenses/BSD-3-Clause) [![codecov](https://codecov.io/gh/maplibre/maplibre-style-spec/branch/main/graph/badge.svg)](https://codecov.io/gh/maplibre/maplibre-style-spec)
1010

1111
This repository contains code and reference files that define the MapLibre style specification and provides some utilities for working with MapLibre styles.
@@ -16,46 +16,54 @@ The style specification is used in MapLibre GL JS and in MapLibre Native. Our lo
1616

1717
If you want to contribute to the style specification, please open an issue with a design proposal. Once your design proposal has been accepted, you can open a pull request and implement your changes.
1818

19-
We aim to avoid breaking changes in the MapLibre style specification, because it makes life easier for our users.
19+
We aim to avoid breaking changes in the MapLibre style specification because it makes life easier for our users.
2020

2121
## Documentation
2222

23-
The [documentation](https://maplibre.org/maplibre-style-spec) of the style specification also lives in this repository. We use [MkDocs](https://www.mkdocs.org/) with the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material) theme.
23+
The [documentation](https://maplibre.org/maplibre-style-spec) of the style specification also lives in this repository.
24+
We use [MkDocs](https://www.mkdocs.org/) with the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material) theme.
2425

25-
To work on the documentation locally, you need to have Docker installed and running. Start MkDocs with
26+
To work on the documentation locally, you need to have Docker installed and running.
27+
Start MkDocs with
2628

27-
```
29+
```bash
2830
npm run mkdocs
2931
```
3032

31-
Most of the documentation is generated (from e.g. `v8.json`). In another terminal, run:
33+
Most of the documentation is generated (from e.g. `v8.json`).
34+
In another terminal, run:
3235

33-
```
36+
```bash
3437
WATCH=1 npm run generate-docs
3538
```
3639

3740
This will re-run the generation script when needed.
3841

39-
Note that generated files should not be checked in and they are excluded in `.gitignore`. Make sure to keep this file up-to-date and ignore generated files while making sure static Markdown files are not ignored.
42+
Note that generated files should not be checked in, and they are excluded in `.gitignore`.
43+
Make sure to keep this file up to date and ignore generated files while making sure static Markdown files are not ignored.
4044

4145
## NPM Package
4246

4347

4448
The MapLibre style specification and utilities are published as a separate npm
4549
package so that they can be installed without the bulk of GL JS.
4650

47-
npm install @maplibre/maplibre-gl-style-spec
51+
```bash
52+
npm install @maplibre/maplibre-gl-style-spec
53+
```
4854

4955
## CLI Tools
5056

5157
If you install this package globally, you will have access to several CLI tools.
5258

53-
npm install @maplibre/maplibre-gl-style-spec --global
59+
```bash
60+
npm install @maplibre/maplibre-gl-style-spec --global
61+
```
5462

5563
### `gl-style-migrate`
5664

57-
This repo contains scripts for migrating GL styles of any version to the latest version
58-
(currently v8). Migrate a style like this:
65+
This repo contains scripts for migrating GL styles of any version to the latest version (currently v8).
66+
You can migrate a style like this:
5967

6068
```bash
6169
$ gl-style-migrate bright-v7.json > bright-v8.json
@@ -82,5 +90,5 @@ Will format the given style JSON to use standard indentation and sorted object k
8290
$ gl-style-validate style.json
8391
```
8492

85-
Will validate the given style JSON and print errors to stdout. Provide a
86-
`--json` flag to get JSON output.
93+
Will validate the given style JSON and print errors to stdout.
94+
Provide a `--json` flag to get JSON output.

bin/gl-style-migrate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ function help() {
1616
console.log('usage:');
1717
console.log(' gl-style-migrate style-v7.json > style-v8.json');
1818
}
19-

bin/gl-style-validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import rw from 'rw';
55
import {validateStyle as validate} from '../src/validate_style';
66

77
const argv = minimist(process.argv.slice(2), {
8-
boolean: 'json',
8+
boolean: 'json'
99
});
1010

1111
if (argv.help || argv.h || (!argv._.length && process.stdin.isTTY)) {

build/bump-version-changelog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const changelogPath = 'CHANGELOG.md';
1313
let changelog = readFileSync(changelogPath, 'utf8');
1414
changelog = changelog.replace('## main', `## ${process.argv[2]}`);
1515
changelog = changelog.replaceAll('- _...Add new stuff here..._\n', '');
16-
changelog = `## main
16+
changelog =
17+
`## main
1718
1819
### ✨ Features and improvements
1920
- _...Add new stuff here..._

0 commit comments

Comments
 (0)