Skip to content

Commit c9fadb0

Browse files
committed
updating documentation according to new repo and new package
1 parent 7d2f50e commit c9fadb0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/angular_integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# How to use it in an angular project
22
Add the these dependencies to your ``package.json`` :
33
- [atularen/ngx-monaco-editor](https://github.com/atularen/ngx-monaco-editor)
4-
- [celian-garcia/monaco-languages-promql](https://github.com/celian-garcia/monaco-languages-promql)
4+
- [prometheus-community/monaco-promql](https://github.com/prometheus-community/monaco-promql)
55

66
```bash
77
npm install ngx-monaco-editor --save
8-
npm install monaco-languages-promql --save
8+
npm install monaco-promql --save
99
```
1010

1111
Add the glob to assets in your ``angular.json`` configuration file.
@@ -36,7 +36,7 @@ import { FormsModule } from '@angular/forms';
3636
import { BrowserModule } from '@angular/platform-browser';
3737
import { MonacoEditorModule } from 'ngx-monaco-editor';
3838

39-
import { promLanguageDefinition } from 'monaco-languages-promql/lib/promql/promql.contribution';
39+
import { promLanguageDefinition } from 'monaco-promql/promql/promql.contribution';
4040
import { NgxMonacoEditorConfig } from 'ngx-monaco-editor';
4141
import { AppComponent } from './app.component';
4242

docs/react_integration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# How to use it in an react project
22

33
> #### Create a react project
4-
> I'm not used to play with react so I found an easy to use spawner.
4+
> I'm not used to play with react so I found an easy to use spawner.
55
> If you are like me, you can use the [facebook/create-react-app](https://github.com/facebook/create-react-app)
66
> ```bash
77
> npx create-react-app my-app
@@ -12,19 +12,19 @@
1212
Add these dependencies to your ``package.json`` :
1313
- [microsoft/monaco-editor](https://github.com/microsoft/monaco-editor)
1414
- [react-monaco-editor/react-monaco-editor](https://github.com/react-monaco-editor/react-monaco-editor)
15-
- [celian-garcia/monaco-languages-promql](https://github.com/celian-garcia/monaco-languages-promql)
15+
- [prometheus-community/monaco-promql](https://github.com/prometheus-community/monaco-promql)
1616
1717
```bash
1818
npm install monaco-editor --save
1919
npm install react-monaco-editor --save
20-
npm install monaco-languages-promql --save
20+
npm install monaco-promql --save
2121
```
2222
2323
Here is an example of simple component.
2424

2525
```javascript
2626
import MonacoEditor from 'react-monaco-editor';
27-
import {promLanguageDefinition} from 'monaco-languages-promql/lib/promql/promql.contribution';
27+
import {promLanguageDefinition} from 'monaco-promql/promql/promql.contribution';
2828

2929
function App() {
3030
function editorWillMount(monaco) {

0 commit comments

Comments
 (0)