Skip to content

Commit

Permalink
Merge pull request #414 from GateNLP/release-2.3.0
Browse files Browse the repository at this point in the history
Documentation and changlog for release 2.3.0
  • Loading branch information
ianroberts authored Nov 4, 2024
2 parents 9aa1df3 + 753e1d5 commit 943f2ad
Show file tree
Hide file tree
Showing 35 changed files with 3,931 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ docker compose run --rm -it pgbackups /backup.sh
(or `docker-compose` if your version of Docker does not support compose v2).
## [2.3.0] 2024-11-04
### Added
- Ability to label radio and checkbox options with HTML rather than just plain text ([#412](https://github.com/GateNLP/gate-teamware/pull/412)), allowing customizations like:
- coloured labels
- use of bold and italic within the label
- adding visual spacing between groups of related options
- making clickable links to a knowledge base for entity linking tasks, etc.
### Fixed
- Upgraded various third-party dependencies ([#413](https://github.com/GateNLP/gate-teamware/pull/413))
## [2.2.0] 2024-05-08
### Changed
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ repository-code: https://github.com/GateNLP/gate-teamware
title: GATE Teamware
type: software
url: https://gatenlp.github.io/gate-teamware/
version: 2.2.0
version: 2.3.0
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
2.3.0
4 changes: 4 additions & 0 deletions docs/docs/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gate-teamware-docs",
"version": "2.2.0",
"version": "2.3.0",
"description": "Documentation for GATE Teamware.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/0.3.0/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/0.4.0/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/2.0.0/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/2.1.0/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/2.1.1/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
4 changes: 4 additions & 0 deletions docs/versioned/2.2.0/.vuepress/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"text": "2.2.0",
"value": "/gate-teamware/2.2.0/"
},
{
"text": "2.3.0",
"value": "/gate-teamware/2.3.0/"
},
{
"text": "development",
"value": "/gate-teamware/development/"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<template>
<div>
<b-tabs>
<b-tab title="Code">

<slot></slot>

</b-tab>
<b-tab title="Preview">
<p v-if="documents.length > 1">Document {{documentIndex + 1}} of {{documents.length}}</p>
<b-card class="mb-2 mt-2">
<AnnotationRenderer ref="annotationRenderer"
:config="config"
:document="currentDocument" :allow_document_reject="true"
v-model="annotationOutput"
:doc_preannotation_field="preAnnotation"
@submit="nextDocument()"
@reject="nextDocument()"
></AnnotationRenderer>
</b-card>
<b-card class="mb-2 mt-2">
<p><strong>Annotation output:</strong></p>
{{annotationOutput}}
</b-card>
</b-tab>

</b-tabs>
</div>

</template>

<script>
import AnnotationRenderer from '@/components/AnnotationRenderer';
export default {
name: "AnnotationRendererPreview",
components: {
AnnotationRenderer
},
data(){
return {
annotationOutput: {},
documentIndex: 0
}
},
computed: {
documents() {
if(Array.isArray(this.document)) {
return this.document
} else {
return [this.document]
}
},
currentDocument() {
return this.documents[this.documentIndex]
}
},
props: {
preAnnotation: {
default(){
return ""
}
},
document: {
default(){
return {text: "Sometext with <strong>html</strong>"}
}
},
config: {
default() {
return [
{
"name": "htmldisplay",
"type": "html",
"text": "{{{text}}}"
},
{
"name": "sentiment",
"type": "radio",
"title": "Sentiment",
"description": "Please select a sentiment of the text above.",
"options": {
"negative": "Negative",
"neutral": "Neutral",
"positive": "Positive"
}
}
]
}
},
},
methods: {
nextDocument() {
this.documentIndex = (this.documentIndex + 1) % this.documents.length;
this.$refs.annotationRenderer.clearForm()
}
}
}
</script>

<style>
legend {
font-weight: bold;
}
</style>
21 changes: 21 additions & 0 deletions docs/versioned/2.3.0/.vuepress/components/DisplayVersion.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<span>{{version_name}}</span>
</template>

<script>
import versionData from "../versions.json"
export default {
name: "DisplayVersion",
computed: {
version_name(){
return versionData.current
}
}
}
</script>

<style scoped>
</style>
42 changes: 42 additions & 0 deletions docs/versioned/2.3.0/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const versionData = require("./versions.json")
const path = require("path");
module.exports = context => ({
title: 'GATE Teamware Documentation',
description: 'Documentation for GATE Teamware',
base: versionData.base,
themeConfig: {
nav: [
{text: 'Home', link: '/'},
{text: 'Annotators', link: '/annotatorguide/'},
{text: 'Managers & Admins', link: '/manageradminguide/'},
{text: 'Developer', link: '/developerguide/'}
],
sidebar: {
'/manageradminguide/': [
"",
"project_management",
"project_config",
"documents_annotations_management",
"annotators_management"
],
'/developerguide/': [
'',
'frontend',
'testing',
'releases',
'documentation',
"api_docs",

],
},
},
configureWebpack: {
resolve: {
alias: {
'@': path.resolve(__dirname, versionData.frontendSource)
}
}
},


})
17 changes: 17 additions & 0 deletions docs/versioned/2.3.0/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Vue from 'vue'
import {BootstrapVue, BootstrapVueIcons, IconsPlugin} from 'bootstrap-vue'

import '@/assets/sass/app.scss'
import 'bootstrap-vue/dist/bootstrap-vue.css'

Vue.use(BootstrapVue)
Vue.use(BootstrapVueIcons)

export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {

}
Loading

0 comments on commit 943f2ad

Please sign in to comment.