3. Run the following command on a command prompt to install Ruby Bundler:
```
gem install bundler -v 2.2.19
```
##### Mac OS users
1. Ruby version 2 or later is required. Verify the pre-installed version, using:
```
ruby --version
```
2. Install Ruby Bundler, using:
```
gem install bundler -v 2.2.19
```
#### First time set up
#### First time set up
Once you have installed any missing prerequisites, in a terminal or on a command prompt:
Once you have installed any missing prerequisites, in a terminal or on a command prompt:
@ -96,9 +43,9 @@ Once you have installed any missing prerequisites, in a terminal or on a command
cd tinymce-docs
cd tinymce-docs
```
```
3. Run the initialization script to install dependencies and create the required local files in the git repository:
3. Run yarn install
```
```
./_scripts/init.sh
yarn install
```
```
#### Run the development version of the documentation
#### Run the development version of the documentation
@ -106,15 +53,19 @@ Once you have installed any missing prerequisites, in a terminal or on a command
To create a development version of the documentation, run:
To create a development version of the documentation, run:
```
```
./_scripts/serve.sh
yarn build
yarn serve
```
```
Allow the `serve.sh` script to run in the background while you are working on the TinyMCE documentation.
To view the documentation; in a web browser, navigate to [http://localhost:4000/](http://localhost:4000/).
To view the documentation; in a web browser, navigate to [http://127.0.0.1:4000](http://127.0.0.1:4000).
> **Note**: The development version of the documentation will update automatically when you save changes locally.
> **Note**: The development version of the documentation will update automatically when you save changes locally.
The `yarn build` step will download the latest TinyMCE source code and generate new API content. To change the version of TinyMCE API, open the `_scripts/api-reference.sh` file and edit the API_VERSION to the TinyMCE version you would like to generate API docs for. Alternatively, to build using a local version of TinyMCE, `yarn build-local ../path/to/local/TinyMCE`.
**Note**: The development server does not need to be stopped prior to running the `yarn build` command, antora should pick up the new changes generated by the build step.
#### TinyMCE API documentation
#### TinyMCE API documentation
The TinyMCE API documentation is maintained within the [TinyMCE project repository](https://github.com/tinymce/tinymce) and compiled for the documentation site using [MoxieDoc](https://github.com/tinymce/moxiedoc).
The TinyMCE API documentation is maintained within the [TinyMCE project repository](https://github.com/tinymce/tinymce) and compiled for the documentation site using [MoxieDoc](https://github.com/tinymce/moxiedoc).
@ -124,42 +75,6 @@ The TinyMCE API documentation is maintained within the [TinyMCE project reposito
- [Node.js](https://nodejs.org/en/).
- [Node.js](https://nodejs.org/en/).
- The TinyMCE documentation repository set up for development as described in [Installing Prerequisites](#installing-prerequisites) and [First time set up](#first-time-set-up).
- The TinyMCE documentation repository set up for development as described in [Installing Prerequisites](#installing-prerequisites) and [First time set up](#first-time-set-up).