Skip to content

Commit 02465a0

Browse files
committed
Change default config
1 parent cc59801 commit 02465a0

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Snippet | Shortcut (Mac/other)
4141

4242
### TEI Publisher instance
4343

44-
The _teipublisher.endpoint_ configuration property defines the HTTP or HTTPS URL the extension will communicate with to retrieve HTML previews. For example, to use your local TEI Publisher instance, set this to `http://localhost:8080/exist/apps/tei-publisher`.
44+
The _teipublisher.endpoint_ configuration property defines the HTTP or HTTPS URL the extension will communicate with to retrieve HTML previews. By default this points to a public TEI Publisher instance available on `https://teipublisher.com/exist/apps/tei-publisher`.
4545

4646
### API Connectors
4747

@@ -86,7 +86,17 @@ The `label` property provides the text to be shown to the user in the dropdown.
8686

8787
## Recommended Extensions
8888

89-
For proper XML editing support, we recommend installing either the [Scholary XML](https://marketplace.visualstudio.com/items?itemName=raffazizzi.sxml) or the [XML Language Support by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml) extension. Scholary XML is more lightweight and has nice features, but it requires a `<?xml-model?>` processing instruction in every file. The Red Hat extension support catalog files, which allow you to associate an XML namespace with a certain schema.
89+
For proper XML editing support, we recommend installing either the [Scholary XML](https://marketplace.visualstudio.com/items?itemName=raffazizzi.sxml) or the [XML Language Support by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml) extension. Scholary XML is more lightweight and has nice features, but it requires a `<?xml-model?>` processing instruction in every file. The Red Hat extension support catalog files, which allow you to associate an XML namespace with a certain schema. For example, a simple `catalog.xml` for all TEI files may look as follows:
90+
91+
```xml
92+
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
93+
<uri
94+
name="http://www.tei-c.org/ns/1.0"
95+
uri="https://tei-c.org/Vault/P5/current/xml/tei/custom/schema/xsd/tei_all.xsd" />
96+
</catalog>
97+
```
98+
99+
Store this somewhere and change the `xml.catalogs` setting in vscode to point to it.
90100

91101
Other extensions you might find useful:
92102

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/eeditiones/tei-publisher-vscode.git"
88
},
99
"publisher": "e-editiones",
10-
"version": "0.1.0",
10+
"version": "0.2.0",
1111
"license": "GPL-3.0-or-later",
1212
"engines": {
1313
"vscode": "^1.51.0"
@@ -92,7 +92,7 @@
9292
"teipublisher.endpoint": {
9393
"type": "string",
9494
"format": "uri",
95-
"default": "http://localhost:8080/exist/apps/kb",
95+
"default": "https://teipublisher.com/exist/apps/tei-publisher",
9696
"description": "Defines the TEI Publisher instance (or an application generated from TEI Publisher) which will be used to preview TEI"
9797
},
9898
"teipublisher.apiList": {

0 commit comments

Comments
 (0)