mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
docs: use information from the previous release to create pages (#4457)
This commit is contained in:
parent
5cb16561d5
commit
85e1dee09a
17 changed files with 5496 additions and 747 deletions
|
@ -51,7 +51,7 @@
|
|||
"gatsby-plugin-netlify": "^5.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "make -C .. expand_website_templates && gatsby build",
|
||||
"build": "make -C .. website_expand_templates && gatsby build",
|
||||
"start": "gatsby develop",
|
||||
"serve": "gatsby serve",
|
||||
"clean": "gatsby clean"
|
||||
|
|
|
@ -30,8 +30,8 @@ allowing to use `React` components.
|
|||
## Templating
|
||||
|
||||
We use templates like `{.SomeField}` inside our `mdx` files.
|
||||
There templates are expanded by running `make expand_website_templates` in the root of the repository.
|
||||
It runs script `scripts/expand_website_templates/main.go` that rewrites `mdx` files with replaced templates.
|
||||
There templates are expanded by running `make website_expand_templates` in the root of the repository.
|
||||
It runs script `scripts/website/expand_templates/` that rewrites `mdx` files with replaced templates.
|
||||
|
||||
## Hosting
|
||||
|
||||
|
@ -59,5 +59,5 @@ Also, there is no need to refresh a webpage: hot reload updates changed content
|
|||
To do it run:
|
||||
|
||||
```sh
|
||||
go run ./scripts/expand_website_templates/main.go
|
||||
go run ./scripts/website/expand_templates/
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue