aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/src/types
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2020-09-02 16:59:05 +0200
committersonartech <sonartech@sonarsource.com>2020-09-18 20:07:14 +0000
commit37a3a7ac753b6f8133b80bc3b8ab20cd7068d402 (patch)
treedcdeabcb8e5247c4854de2058300090d4ce5dd5c /server/sonar-docs/src/types
parent0605a508ab145e8bac03c3ce6e96c4ec44febb70 (diff)
downloadsonarqube-37a3a7ac753b6f8133b80bc3b8ab20cd7068d402.tar.gz
sonarqube-37a3a7ac753b6f8133b80bc3b8ab20cd7068d402.zip
SONAR-13643 Remove the version history of a language analyzer from its documentation page
Diffstat (limited to 'server/sonar-docs/src/types')
-rw-r--r--server/sonar-docs/src/types/hast.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/sonar-docs/src/types/hast.ts b/server/sonar-docs/src/types/hast.ts
new file mode 100644
index 00000000000..7d2d1d065a8
--- /dev/null
+++ b/server/sonar-docs/src/types/hast.ts
@@ -0,0 +1,31 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2020 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+export interface HtmlAST {
+ children: HtmlASTNode[];
+}
+
+export interface HtmlASTNode {
+ type: string;
+ tagName?: string;
+ properties?: { [key: string]: string };
+ value?: string;
+ children?: HtmlASTNode[];
+}