Skip to content

Commit 21ea837

Browse files
authored
Merge pull request #1554 from EnterpriseDB/release/2021-07-13
Release/2021 07 13 Former-commit-id: 9a314fb
2 parents d8a78ed + 9cff136 commit 21ea837

File tree

238 files changed

+851
-427
lines changed

Some content is hidden

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

238 files changed

+851
-427
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.cache/
2+
public/

.prettierrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"singleQuote": true,
32
"trailingComma": "all"
43
}

README.md

+59-16
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ We recommend using MacOS to work with the EDB Docs application.
2020

2121
1. Navigate to the cloned repo directory in your Terminal, if you haven't already done so.
2222

23+
1. Create a `.env` file: `cp env .env.development`.
24+
2325
1. Install [Node.js version 14 LTS](https://nodejs.org/en/download/). We recommend using Node version 14 LTS (the Long Term Support release) as version 15 is not compatible with some of our dependencies at this time.
2426

2527
- If you already have Node installed, you can verify your version by running `node -v` in the cloned repo directory.
2628

2729
- If you already have a different version of Node installed, you may want to consider using Node Version Manager (NVM) for a simpler way to manage multiple versions of Node.js. Follow the [directions to install NVM](https://github.com/nvm-sh/nvm#installing-and-updating), then run `nvm install` in the cloned repo directory, followed by `nvm use` which will auto-detect the correct version of Node.js to use (currently 14 LTS).
2830

29-
1. Install Python 3 with `brew install python3`, if it's not already installed. (Use `python3 -V` to check that you have version 3.6 or higher.) Python is not needed for the core Gatsby system, but is required by several source scripts.
31+
1. Install Python 3 with `brew install python3`, if it's not already installed. (Use `python3 -V` to check that you have version 3.8 or higher.) Python is not needed for the core Gatsby system, but is required by several source scripts.
3032

3133
1. Install Yarn with `npm i -g yarn`. Yarn is the package manager we're using for this project, instead of NPM. NPM may fail with a permissions related issue. To fix that, ensure that your user account owns the required directory: `sudo chown -R $(whoami) /usr/local/lib/node_modules`
3234

@@ -36,17 +38,59 @@ We recommend using MacOS to work with the EDB Docs application.
3638

3739
1. And finally, you can start up the site locally with `yarn develop`, which should make it live at `http://localhost:8000/`. Huzzah!
3840

39-
### Installation of PDF / Doc Conversion Tools (optional)
41+
### Building Local PDFs (optional)
42+
43+
To build PDFs locally, you'll need to use a Docker container.
44+
45+
1. Install Docker using Homebrew:
46+
47+
```sh
48+
brew install --cask docker
49+
```
50+
51+
If you get a message saying that you already have Docker installed, check which version is installed using these commands:
52+
53+
```sh
54+
brew ls --formula docker
55+
brew ls --cask docker
56+
```
57+
58+
If the first command yields results, enter the following command to uninstall the formula version and to install the cask version:
59+
60+
```sh
61+
brew uninstall -f docker && brew install --cask docker
62+
```
63+
64+
1. Start the Docker app. You can tell whether Docker has started or not by looking at your menu bar icons, you should see a whale with containers on its back:
4065

41-
If you need to build PDFs locally, you'll need to install Docker via Homebrew: `brew install docker`.
66+
![Docker Whale](https://cdn.icon-icons.com/icons2/2248/PNG/32/docker_icon_138669.png)
67+
68+
1. Create the Docker image (optional):
69+
70+
```sh
71+
docker-compose -f docker/docker-compose.build-pdf.yaml build --pull
72+
```
73+
74+
1. Run the following command inside the docs project to create a PDF:
75+
76+
```sh
77+
yarn build-pdf product_docs/docs/<product_folder>/<version>
78+
```
79+
80+
For example, to build a PDF for the EPAS 13 documentation:
81+
82+
```sh
83+
yarn build-pdf product_docs/docs/epas/13
84+
```
85+
86+
### Converting RST to MDX (optional)
4287

4388
If you need to run parts of the RST to MDX conversion pipeline, you'll need to install `pandoc`, a general purpose document conversion tool. This can also be installed with homebrew - `brew install pandoc`.
4489

4590
## Windows Installation
4691

4792
If you are a Windows user, you can work with Docs without installing it locally by using a Docker container and VSCode. See [Working on Docs in a Docker container using VSCode](README_DOCKER_VSCODE.md)
4893

49-
5094
## Sources
5195

5296
- Advocacy (`/advocacy_docs`, always loaded)
@@ -138,7 +182,6 @@ This frontmatter is an automatically generated list of redirects for Docs 1.0 to
138182

139183
If you need to setup a redirect from Docs 1.0 to Docs 2.0 manually, this is the place to do it. If the `legacyRedirectsGenerated` frontmatter does not include the redirect you need, you should add it here.
140184

141-
142185
# MDX Format
143186

144187
Documentation must be formatted as an [MDX file](https://www.gatsbyjs.com/docs/mdx/writing-pages/) with the `.mdx` extension. MDX is a superset of [Markdown](https://www.markdownguide.org/).
@@ -184,20 +227,20 @@ If you need to draw attention to information, consider using an admonition:
184227

185228
Admonitions begin with the `!!!` signifier. Next comes a (case-insensitive) type which is one of:
186229

187-
* important
188-
* tip
189-
* note
190-
* caution
191-
* warning
230+
- important
231+
- tip
232+
- note
233+
- caution
234+
- warning
192235

193236
There are several [aliases](https://github.com/elviswolcott/remark-admonitions#usage):
194237

195-
* info => important
196-
* success => tip
197-
* secondary => note
198-
* danger => warning
199-
* seealso => note
200-
* hint => tip
238+
- info => important
239+
- success => tip
240+
- secondary => note
241+
- danger => warning
242+
- seealso => note
243+
- hint => tip
201244

202245
Titles are optional. If you don't include one, the admonition will default to the type name ("Important", "Tip", etc.).
203246

0 commit comments

Comments
 (0)