diff --git a/packages/teroshdl/resources/webviews/state_machine_viewer/style.css b/packages/teroshdl/resources/webviews/state_machine_viewer/style.css
deleted file mode 100644
index f325365f..00000000
--- a/packages/teroshdl/resources/webviews/state_machine_viewer/style.css
+++ /dev/null
@@ -1,82 +0,0 @@
-body::-webkit-scrollbar {
- width: 1em;
-}
-body::-webkit-scrollbar-track {
- box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
-}
-
-body::-webkit-scrollbar-thumb {
- background-color: darkgrey;
-}
-
-html,
-body {
- height: 100%;
- overflow: hidden;
- overflow-y: auto;
- color: black;
- margin: 0;
- padding: 0;
-}
-
-.navbar {
- margin-left: 0;
- margin-right: 0;
- width: 100%;
-}
-
-.navbar-nav {
- margin: 0 auto;
-}
-
-#zoom {
- color: white;
- margin: 0.5em;
-}
-
-#status {
- align-items: center;
- background: rgba(0, 0, 0, 0.85);
- color: white;
- display: flex;
- font: 16px Monaco, Menlo, Consolas, monospace;
- height: 100%;
- justify-content: center;
- margin: 0;
- position: absolute;
- width: 100%;
- z-index: 1;
-}
-
-#status:empty {
- display: none;
-}
-
-#message {
- font-weight: bold;
- font: 20px;
-}
-
-#code {
- color: #424242;
-}
-
-.navbar-center {
- display: flex;
- justify-content: center;
-}
-
-.navbar-center {
- width: 100%;
-}
-
-button svg {
- fill: #000000;
- width: 20px;
- height: 20px;
- margin-bottom: 4px;
-}
-
-button:hover svg{
- fill: #ffffff;
-}
\ No newline at end of file
diff --git a/packages/teroshdl/src/features/documenter.ts b/packages/teroshdl/src/features/documenter.ts
index 9977c40f..3978eda6 100644
--- a/packages/teroshdl/src/features/documenter.ts
+++ b/packages/teroshdl/src/features/documenter.ts
@@ -117,7 +117,7 @@ export class Documenter_manager extends Base_webview {
const documenter = await this.get_documenter();
const config = this.get_config();
const html_document = await documenter.get_document(vscode_document.code, vscode_document.lang,
- config, false, vscode_document.filename, '', false,
+ config, false, vscode_document.filename, '', true,
teroshdl2.documenter.common.doc_output_type.HTML);
if (this.panel !== undefined) {
diff --git a/packages/teroshdl/src/features/schematic.ts b/packages/teroshdl/src/features/schematic.ts
index 24abe75a..ca65e042 100644
--- a/packages/teroshdl/src/features/schematic.ts
+++ b/packages/teroshdl/src/features/schematic.ts
@@ -63,6 +63,9 @@ export class Schematic_manager extends Base_webview {
const css_bootstrap_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews', 'common',
'bootstrap.min.css'));
+ const css_common_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews', 'common',
+ 'style.css'));
+
const css_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources','webviews',
'netlist_viewer', 'style.css'));
const js_path_0 = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources','webviews',
@@ -79,6 +82,7 @@ export class Schematic_manager extends Base_webview {
'netlist_viewer', 'libs', 'main.js'));
const html = nunjucks.renderString(template_str, {
+ "css_common_path": css_common_path,
"css_bootstrap_path": css_bootstrap_path,
"css_path": css_path,
"cspSource": webview.cspSource,
diff --git a/packages/teroshdl/src/features/state_machine.ts b/packages/teroshdl/src/features/state_machine.ts
index 53c66e9b..4263291e 100644
--- a/packages/teroshdl/src/features/state_machine.ts
+++ b/packages/teroshdl/src/features/state_machine.ts
@@ -54,8 +54,9 @@ export class State_machine_manager extends Base_webview {
const css_bootstrap_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews', 'common',
'bootstrap.min.css'));
- const css_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews', 'state_machine_viewer',
+ const css_common_path = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews', 'common',
'style.css'));
+
const js_path_0 = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews',
'state_machine_viewer', 'libs', 'jquery-2.2.4.min.js'));
const js_path_1 = webview.asWebviewUri(vscode.Uri.joinPath(this.context.extensionUri, 'resources', 'webviews',
@@ -68,7 +69,7 @@ export class State_machine_manager extends Base_webview {
'state_machine_viewer', 'libs', 'viz.js'));
const html = nunjucks.renderString(template_str, {
- "css_path": css_path,
+ "css_common_path": css_common_path,
"css_bootstrap_path": css_bootstrap_path,
"cspSource": webview.cspSource,
"js_path_0": js_path_0,