Skip to content

Commit

Permalink
Prettier mdown files.
Browse files Browse the repository at this point in the history
I did cheat a bit at the code examples to make them look similar to the source file.
  • Loading branch information
apepper committed Mar 26, 2020
1 parent 989ad4a commit 6504b4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
20 changes: 10 additions & 10 deletions readme.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ The Scrivito example app JS requires the tenant ID of your CMS. The ID is taken

To specify it, proceed as follows:

* Go to your [Scrivito Websites](https://my.scrivito.com/tenants/).
* Click the CMS to use.
* Open the “Settings” tab.
* Scroll down to the “Anonymous access for the Scrivito Javascript SDK” section.
* Copy the value after SCRIVITO_TENANT= to the clipboard.
* In the project directory, open/create the file `.env` and paste the ID after the `SCRIVITO_TENANT` key. The file should then look like this:
- Go to your [Scrivito Websites](https://my.scrivito.com/tenants/).
- Click the CMS to use.
- Open the “Settings” tab.
- Scroll down to the “Anonymous access for the Scrivito Javascript SDK” section.
- Copy the value after SCRIVITO_TENANT= to the clipboard.
- In the project directory, open/create the file `.env` and paste the ID after the `SCRIVITO_TENANT` key. The file should then look like this:

```
SCRIVITO_TENANT=0123456789ABCDEF0123456789ABCDEF
Expand All @@ -67,8 +67,8 @@ See `.env.example` for an example.

To enable resource sharing between your CMS and your web application, specify the URL of your app in the CMS settings.

* Like above, navigate to the “Deployment” tab of the CMS to use with your app.
* Make sure that `http://localhost:8080` is added to the "Other authorized URLs".
- Like above, navigate to the “Deployment” tab of the CMS to use with your app.
- Make sure that `http://localhost:8080` is added to the "Other authorized URLs".

See [Getting Started with ScrivitoJS](https://scrivito.com/getting-started-with-scrivitojs-f729f073bf4672d8) for more information.

Expand All @@ -83,13 +83,13 @@ To see development in action, let's change the `ButtonWidget` so that it prefixe
Open up the react component responsible for rendering a `ButtonWidget`. It's located at `src/Widgets/ButtonWidget/ButtonWidgetComponent.js`. Now look for the `Scrivito.LinkTag` and insert

```jsx
{ '🚀 ' }
{"🚀 "}
```

before

```jsx
{ text }<i className="fa fa-angle-right fa-4" aria-hidden="true" />
{text}<i className="fa fa-angle-right fa-4" aria-hidden="true" />
```

After saving the file, your browser should automatically reload [http://localhost:8080](http://localhost:8080) with your new emoji button. Of course you can choose another emoji, check out [emojipedia.org](https://emojipedia.org).
Expand Down
7 changes: 4 additions & 3 deletions readme.prepackaged.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ And because Scrivito is 100% serverless, you'll never have to patch your CMS, so
## Getting Started

### Install/check prerequisites

Make sure that you have [![node ≥ 8.0](https://img.shields.io/badge/node-≥%208.0-blue.svg)](https://nodejs.org) and [![npm ≥ 5.0](https://img.shields.io/badge/npm-≥%205.0-blue.svg)](https://www.npmjs.com/get-npm) installed.

```
Expand All @@ -42,13 +43,13 @@ To see development in action, let's change the `ButtonWidget` so that it prefixe
Open up the react component responsible for rendering a `ButtonWidget`. It's located at `src/Widgets/ButtonWidget/ButtonWidgetComponent.js`. Now look for the `Scrivito.LinkTag` and insert

```jsx
{ '🚀 ' }
{"🚀 "}
```

before

```jsx
{ text }<i className="fa fa-angle-right fa-4" aria-hidden="true" />
{text}<i className="fa fa-angle-right fa-4" aria-hidden="true" />
```

After saving the file, your browser should automatically reload [http://localhost:8080](http://localhost:8080) with your new emoji button. Of course you can choose another emoji, check out [emojipedia.org](https://emojipedia.org).
Expand All @@ -61,7 +62,7 @@ Calling `npm run build` will compile all JS, HTML and CSS and place it in the `b

## Github

This package reflects the latest version of the github repository: [https://github.com/scrivito/scrivito\_example\_app\_js](https://github.com/scrivito/scrivito\_example\_app\_js).
This package reflects the latest version of the github repository: [https://github.com/scrivito/scrivito_example_app_js](https://github.com/scrivito/scrivito_example_app_js).

## Documentation

Expand Down

0 comments on commit 6504b4a

Please sign in to comment.