Skip to content

Commit d7f69d9

Browse files
docs: Fix syntax highlight bug in included markdown files (#6906)
1 parent 1e767ef commit d7f69d9

14 files changed

+133
-42
lines changed

docs/_multiconfig.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
url: https://labelstud.io/
12
theme_config:
23
tier: opensource
34
root_domain: labelstud.io
@@ -19,7 +20,6 @@ author: Heartex
1920
language: en
2021
timezone: null
2122
google_analytics: UA-129877673-4
22-
url: https://labelstud.io/
2323
root: /
2424
permalink: ':year/:month/:day/:title/'
2525
permalink_defaults: null
@@ -57,6 +57,9 @@ markdown:
5757
breaks: false
5858
smartLists: true
5959
smartypants: true
60+
marked:
61+
gfm: true
62+
breaks: false
6063
index_generator:
6164
path: ''
6265
per_page: 10
@@ -73,7 +76,7 @@ plugins:
7376
theme: v2
7477
sitemap:
7578
path:
76-
- sitemap-docs.xml
79+
- guide/sitemap-docs.xml
7780
search:
7881
path: search.xml
7982
field: all

docs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"hexo-generator-sitemap": "^3.0.1",
3030
"hexo-generator-tag": "^0.2.0",
3131
"hexo-include": "^1.1.0",
32-
"hexo-include-markdown": "^1.0.2",
3332
"hexo-insert-markdown": "^1.4.4",
3433
"hexo-ipynb": "^0.2.4",
3534
"hexo-jupyter-notebook": "0.0.3",

docs/source/guide/export.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Image annotations exported in JSON format use percentages of overall image size,
2020
!!! note
2121
Some export formats export only the annotations and not the data from the task. For more information, see the [export formats supported by Label Studio](#Export-formats-supported-by-Label-Studio).
2222

23-
24-
<!-- md annotation_ids.md -->
23+
{% insertmd includes/annotation_ids.md %}
2524

2625
<div class="opensource-only">
2726

@@ -192,12 +191,9 @@ Results are stored in a tab-separated tabular file with column names specified b
192191

193192
Export object detection annotations in the YOLOv3 and YOLOv4 format. Supports object detection labeling projects that use the `RectangleLabels` tag.
194193

195-
196194
{% insertmd includes/task_format.md %}
197195

198-
199-
<!-- md image_units.md -->
200-
196+
{% insertmd includes/image_units.md %}
201197

202198
## Manually convert JSON annotations to another format
203199
You can run the [Label Studio converter tool](https://github.com/HumanSignal/label-studio-converter) on a directory or file of completed JSON annotations using the command line or Python to convert the completed annotations from Label Studio JSON format into another format.

docs/source/guide/install.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Install Label Studio on premises or in the cloud. Choose the installation method
2020

2121
Label Studio is also available an [enterprise product](https://heartex.com/), which you can explore instantly through a [free trial](https://humansignal.com/free-trial).
2222

23-
<!-- md deploy.md -->
23+
{% insertmd includes/deploy.md %}
2424

2525
### Web browser support
2626

@@ -228,5 +228,3 @@ label-studio start path/to/old/project
228228
The most important change to be aware of is changes to rename "completions" to "annotations". See the [updated JSON format for completed tasks](export.html#Raw_JSON_format_of_completed_tasks).
229229

230230
If you customized the Label Studio Frontend, see the [Frontend reference guide](frontend_reference.html) for required updates to maintain compatibility with version 1.0.0.
231-
232-

docs/source/guide/install_enterprise_docker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See [Secure Label Studio](security.html) for more details about security and har
1919

2020
To install Label Studio Community Edition, see [Install Label Studio](https://labelstud.io/guide/install). This page is specific to the Enterprise version of Label Studio.
2121

22-
<!-- md deploy.md -->
22+
{% insertmd includes/deploy.md %}
2323

2424
## Install Label Studio Enterprise using Docker
2525

docs/source/guide/install_requirements.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ meta_title: Requirements to Install and Upgrade
88
meta_description: "Label Studio documentation: Requirements to install and upgrade Label Studio."
99
---
1010

11-
<!-- md deploy.md -->
12-
11+
{% insertmd includes/deploy.md %}
1312

1413
## Install prerequisite
1514

docs/source/guide/labeling.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -444,5 +444,4 @@ OR
444444

445445
1. Press CTRL button and start drawing bounding box over another one.
446446

447-
448-
<!-- md annotation_ids.md -->
447+
{% insertmd includes/annotation_ids.md %}

docs/source/guide/release_notes.md

+114
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,120 @@ meta_description: Review new features, enhancements, and bug fixes for on-premis
1919
Before upgrading, review the steps outlined in [Upgrade Label Studio Enterprise](upgrade_enterprise) and ensure that you complete the recommended tests after each upgrade.
2020

2121
<div class="release-note"><button class="release-note-toggle"></button>
22+
<a name="2191md"></a>
23+
24+
## Label Studio Enterprise 2.19.1
25+
26+
<div class="onprem-highlight">Bug fixes </div>
27+
28+
*Jan 02, 2025*
29+
30+
Helm Chart version: 1.7.4
31+
32+
### Bug fixes
33+
- Fixed an issue where, in some cases, project roles were reset on SAML SSO login.
34+
- Fixed an issue affecting Redis credentials with special characters.
35+
36+
37+
38+
39+
40+
41+
</div><div class="release-note"><button class="release-note-toggle"></button>
42+
<a name="2190md"></a>
43+
44+
## Label Studio Enterprise 2.19.0
45+
46+
<div class="onprem-highlight">Paginated multi-image labeling and a new Task Reservation setting </div>
47+
48+
*Dec 17, 2024*
49+
50+
Helm Chart version: 1.7.3
51+
52+
### New features
53+
54+
#### Paginated multi-image labeling
55+
56+
Paginated multi-image labeling allows you to label an album of images within a single task. When enabled, a page navigation tool is available within the labeling interface.
57+
58+
While you can use paginated multi-image labeling with any series of related images, it can also be especially useful for for document annotation.
59+
60+
For example, you can pre-process a PDF to convert it into image files, and then use the pagination toolbar to navigate the PDF. For more information, see our [Multi-Page Document Annotation template](/templates/multi-page-document-annotation).
61+
62+
To enable this feature, use the `valueList` parameter on the [`<Image> tag`](/tags/image).
63+
64+
![Screenshot of multi-page annotation](/images/releases/2-19-mig.png)
65+
66+
#### Set task reservation time
67+
68+
There is a new project setting under **Annotation > Task Reservation**.
69+
70+
You can use this setting to determine how many minutes a task can be reserved by a user. You can also use it for projects that have become stalled due to too many reserved tasks. For more information, see [Project settings - Task Reservation](https://docs.humansignal.com/guide/project_settings_lse#lock-tasks).
71+
72+
By default, the task reservation time is set to one day (1440 minutes). This setting is only available when task distribution is set to **Auto**.
73+
74+
![Screenshot of multi-page annotation](/images/releases/2-19-reservation.png)
75+
76+
### Enhancements
77+
78+
- When using the **Send Test Request** action for a connected ML backend model, you will now see more descriptive error messages.
79+
80+
- The placeholder text within labeling configuration previews is now more descriptive of what should appear, rather than providing example text strings.
81+
82+
- Improved the inter-annotator agreement API so that it is more performant and can better handle a high number of annotators.
83+
84+
- Improved Annotator Performance Report page load time.
85+
86+
- TextArea elements have been updated to reflect the look and feel of other labeling elements.
87+
88+
### Bug fixes
89+
90+
- Fixed an issue where SSO/SAML users were not being redirected back to the originally requested URL.
91+
92+
- Fixed an issue where a timeout on the inter-annotator agreement API would cause missing data in the Annotator Summary table on the Members page.
93+
94+
- Fixed an issue where the default date format used when exporting to CSV was incompatible with Google Sheets.
95+
96+
- Fixed an issue where commas in comment text breaking were causing errors when exporting to CSV from the Annotator Performance report.
97+
98+
- Fixed an issue that was causing 404 errors in the Activity Log.
99+
100+
- Fixed an issue where users were unable to deselect tools from the toolbar by clicking them a second time.
101+
102+
- Fixed an issue where users were presented with Reviewer actions even if the annotation was still in Draft state.
103+
104+
- Fixed an issue with the Source Storage editor in which some fields were overlapping in the user interface.
105+
106+
- Fixed an issue with the Data Manager filters when the columns are different from those in the labeling config and when `$undefined$` is present in the task data.
107+
108+
- Fixed an issue where filter options in the Data Manager would disappear on hover.
109+
110+
- Fixed an issue which caused XML comments to incorrectly be considered in the label config validation.
111+
112+
- Fixed an issue causing an error when marking a comment as read.
113+
114+
- Fixed an issue where an error message would appear when selecting or unselecting the **Get the latest news & tips from Heidi** option on the Account Settings page.
115+
116+
- Fixed an issue where annotators were seeing a tooltip message stating that the project was not ready yet, even though the project had already been completed.
117+
118+
- Fixed an issue where project-level roles did not affect role upgrades performed at the Organization level.
119+
120+
121+
### Feature flag updates
122+
123+
The following feature flags have been removed:
124+
125+
- `fflag_feat_front_dev_2984_dm_draggable_columns_short`
126+
- `fflag-feat-front-dev-2982-label-weights-settings`
127+
- `ff_back_2070_inner_id_12052022_short`
128+
129+
130+
131+
132+
133+
134+
135+
</div><div class="release-note"><button class="release-note-toggle"></button>
22136
<a name="2180md"></a>
23137

24138
## Label Studio Enterprise 2.18.0

docs/source/guide/troubleshooting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Check that you are using the correct annotation units.
214214

215215
{% details <b>Image annotation units</b> %}
216216

217-
<!-- md image_units.md -->
217+
{% insertmd includes/image_units.md %}
218218

219219
{% enddetails %}
220220

@@ -503,4 +503,4 @@ You must ensure that the ML backend can access your Label Studio data. If it can
503503
* You are unable to see predictions when loading tasks in Label Studio.
504504
* Your ML backend appears to be connected properly, but cannot seem to complete any auto annotations within tasks.
505505

506-
To remedy this, ensure you have set the `LABEL_STUDIO_URL` and `LABEL_STUDIO_API_KEY` environment variables. For more information, see [Allow the ML backend to access Label Studio data](ml#Allow-the-ML-backend-to-access-Label-Studio-data).
506+
To remedy this, ensure you have set the `LABEL_STUDIO_URL` and `LABEL_STUDIO_API_KEY` environment variables. For more information, see [Allow the ML backend to access Label Studio data](ml#Allow-the-ML-backend-to-access-Label-Studio-data).

docs/source/includes/nested-classification.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
<!-- Unfortunately included md files doesn't support code highlighting, do it manually -->
2-
<script src="/js/highlight.min.js"></script>
3-
<script>
4-
hljs.highlightAll();
5-
$(function() {
6-
$('.code-badge-language').each(function (o, v) {
7-
console.log(o)
8-
if ($(v).html() === 'undefined')
9-
$(v).html('')
10-
if ($(v).html() === 'bash')
11-
$(v).html('shell')
12-
if ($(v).html() === 'html')
13-
$(v).html('xml')
14-
})
15-
});
16-
</script>
17-
181
## Enhance classification templates with nested choices
192

203
You can add conditional or nested choices to any classification template. If you want classification options to appear only if certain conditions are met, such as specific choices being selected by annotators, adapt one of these conditional and nested classification examples.
@@ -132,4 +115,4 @@ Add a third [Choices](/tags/choices.html) control tag to prompt the annotator to
132115
<Choice value="Traffic" />
133116
<Choice value="Unsure/Other" />
134117
</Choices>
135-
```
118+
```

docs/source/templates/audio_classification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ If you want to make the classification section visually distinct from the rest o
7979
</View>
8080
```
8181

82-
<!-- md nested-classification.md -->
82+
{% insertmd includes/nested-classification.md %}
8383

8484
## Related tags
8585

docs/source/templates/image_classification.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ If you want the classification choices to appear to the left of the image, you c
7575

7676
```
7777

78-
<!-- md nested-classification.md -->
78+
{% insertmd includes/nested-classification.md %}
7979

8080
## Related tags
8181

8282
- [Image](/tags/image.html)
83-
- [Choices](/tags/choices.html)
83+
- [Choices](/tags/choices.html)

docs/source/templates/intent_classification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use the [Choices](/tags/choices.html) control tag to classify the intent for eac
6363
```
6464
Because of the `perRegion="true"` argument, each choice applies to a different segment labeled as a segment. The `required="true"` argument ensures that each labeled audio segment has a choice selected before the annotation can be submitted.
6565

66-
<!-- md nested-classification.md -->
66+
{% insertmd includes/nested-classification.md %}
6767

6868
## Related tags
6969

docs/source/templates/sentiment_analysis.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Don't forget to close the original [View](/tags/view.html) tag:
125125
</View>
126126
```
127127

128-
<!-- md nested-classification.md -->
128+
{% insertmd includes/nested-classification.md %}
129129

130130
## Related tags
131131
- [Text](/tags/text.html)

0 commit comments

Comments
 (0)