Skip to content

Commit

Permalink
documentation browser
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 15, 2023
1 parent 6c7bd22 commit 6f9f658
Show file tree
Hide file tree
Showing 140 changed files with 1,374 additions and 12,990 deletions.
104 changes: 3 additions & 101 deletions docs/components/html/en-US/AddToInstrumentHistory.html

Large diffs are not rendered by default.

120 changes: 17 additions & 103 deletions docs/components/html/en-US/Animate.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/AppView.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/BarGraph.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Bitmap.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Button.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ButtonGroup.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/CSVParse.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/CSVStringify.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/CallAction.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Canvas.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/CatchError.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Checkbox.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/CollectStream.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Comment.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Compare.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ConnectInstrument.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Constant.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Container.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Counter.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/DateNow.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Delay.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/DisplayData.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Dropdown.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/DynamicCallAction.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/EEZChart.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/End.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Error.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Eval JS.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Evaluate.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ExecuteCommand.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/FileAppend.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/FileOpenDialog.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/FileRead.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/FileSaveDialog.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/FileWrite.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Gauge.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/GetInstrument.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/GetInstrumentProperties.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Grid.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/HTTP.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Input.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/IsTrue.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/JSONParse.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/JSONStringify.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Arc.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Bar.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Button.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Calendar.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Chart.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Checkbox.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Colorwheel.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Dropdown.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Image.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Imgbutton.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Keyboard.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Label.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Meter.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Panel.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Roller.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Slider.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Spinner.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Switch.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL Textarea.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL UserWidget.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LVGL.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/LineChart.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/List.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ListGraph.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Log.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Loop.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTConnect.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTDisconnect.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTEvent.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTInit.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTPublish.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTSubscribe.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MQTTUnsubscribe.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Markdown.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/MultilineText.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/NoOp.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/OnEvent.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Output.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/OverrideStyle.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Progress.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/PythonEnd.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/PythonRun.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/PythonSendMessage.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/QRCode.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ReadSetting.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Rectangle.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Regexp.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Roller.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SCPI.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ScrollBar.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Select.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SelectInstrument.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SelectLanguage.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SerialConnect.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SerialDisconnect.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SerialListPorts.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SerialRead.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SerialWrite.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SetPageDirection.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SetVariable.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ShowFileInFolder.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ShowKeyboard.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ShowKeypad.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ShowMessageBox.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ShowPage.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Slider.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SortArray.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Spinner.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Start.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Switch.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/SwitchCase.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Terminal.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/TestAndSet.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Text.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/TextInput.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/ToggleButton.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/UpDown.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/UserWidget.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/Watch.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/WriteSettings.html

Large diffs are not rendered by default.

104 changes: 3 additions & 101 deletions docs/components/html/en-US/YTGraph.html

Large diffs are not rendered by default.

Binary file modified docs/components/html/en-US/images/animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions help/en-US/components/Component.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Poravnavanje i distribucija komponenti.

X pozicija komponente.

![Alt text](images/align_and_distribute.png)

## Top [DRAFT]

Y pozicija komponente.
Expand Down
Binary file modified help/en-US/components/images/animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
613 changes: 607 additions & 6 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"start": "electron --trace-warnings --trace-deprecation .",
"build": "npm run build-src && npm run build-css && npm run build-dark-css && npm run build-eez-runtime && npm run build-lvgl-runtime && npm run make-electron-builder-yml",
"build-src": "tsc && node node_modules/gulp-cli/bin/gulp.js release",
"build-css": "node node_modules/less/bin/lessc --clean-css packages/eez-studio-ui/_stylesheets/main.less build/eez-studio-ui/_stylesheets/main.css",
"build-css": "node node_modules/less/bin/lessc --clean-css packages/eez-studio-ui/_stylesheets/main.less build/eez-studio-ui/_stylesheets/main.css && npm run build-component-doc-css",
"build-dark-css": "node node_modules/less/bin/lessc packages/eez-studio-ui/_stylesheets/main-dark.less build/eez-studio-ui/_stylesheets/main-dark.css",
"build-component-doc-css": "node node_modules/less/bin/lessc --clean-css packages/eez-studio-ui/_stylesheets/component-doc-light.less build/eez-studio-ui/_stylesheets/component-doc.css",
"build-eez-runtime": "run-script-os",
"build-eez-runtime:darwin:linux": "cp packages/project-editor/flow/runtime/eez_runtime.* build/project-editor/flow/runtime",
"build-eez-runtime:win32": "copy packages\\project-editor\\flow\\runtime\\eez_runtime.* build\\project-editor\\flow\\runtime\\",
Expand Down Expand Up @@ -55,6 +56,7 @@
"@types/emscripten": "^1.39.6",
"@types/ffi-napi": "^4.0.7",
"@types/jquery": "^3.3.38",
"@types/jsdom": "^21.1.1",
"@types/json-stable-stringify": "^1.0.34",
"@types/lodash": "^4.14.185",
"@types/marked": "^5.0.0",
Expand Down Expand Up @@ -85,6 +87,7 @@
"gulp": "^4.0.2",
"gulp-cli": "^2.2.0",
"gulp-terser": "^2.1.0",
"jsdom": "^22.1.0",
"json-to-pretty-yaml": "^1.2.2",
"less": "^3.13.1",
"less-plugin-clean-css": "^1.5.1",
Expand Down
95 changes: 2 additions & 93 deletions packages/eez-studio-ui/_stylesheets/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -7236,97 +7236,6 @@ button.EezStudio_Action {
height: 100%;
display: flex;
flex-direction: column;

.EezStudio_Component_Documentation {
flex: 1;
padding: 10px;
background-color: @backgroundColor;
overflow: auto;

.EezStudio_Component_Documentation_TitleEnclosure {
padding-bottom: 10px;
border-bottom: 1px solid @borderColor;
margin-bottom: 20px;

display: flex;
align-items: center;
justify-content: space-between;

.EezStudio_Component_Documentation_Title {
display: flex;
align-items: center;
font-size: 32px;
border-radius: 8px;
padding: 5px 15px;
width: fit-content;

img,
svg {
height: 36px;
object-fit: contain;
}

& > div:last-child {
padding-left: 10px;
}
}

.EezStudio_Component_Documentation_Title_ProjectTypes {
svg,
img {
margin-right: 10px;
}

svg:last_child,
img:last_child {
margin-right: 0;
}
}
}

.EezStudio_Component_Documentation_Body {
.EezStudio_Component_Documentation_BodySection {
& > h1:first-child {
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
}
& > div:nth-child(2) {
padding-left: 10px;
}
margin-bottom: 15px;

& div > dl > dt {
display: flex;
h2 {
margin-bottom: 0;
margin-right: 20px;
font-size: 14px;
line-height: var(--bs-body-line-height);
}
margin-bottom: 10px;
}

.accordion-item {
h2 {
font-size: 14px;
}
}

.accordion-body dt {
display: flex;
h3 {
margin-bottom: 0;
margin-right: 20px;
font-size: 14px;
line-height: var(--bs-body-line-height);
}
margin-bottom: 10px;
}
}
.EezStudio_Component_Documentation_BodySection:last-child {
margin-bottom: 0;
}
}
}
}

@import "component-doc";
2 changes: 2 additions & 0 deletions packages/eez-studio-ui/_stylesheets/component-doc-light.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "vars";
@import "component-doc";
97 changes: 97 additions & 0 deletions packages/eez-studio-ui/_stylesheets/component-doc.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.EezStudio_DocumentationBrowser_Content_Help {
.EezStudio_Component_Documentation {
flex: 1;
padding: 10px;
background-color: @backgroundColor;
overflow: auto;

.EezStudio_Component_Documentation_TitleEnclosure {
padding-bottom: 10px;
border-bottom: 1px solid @borderColor;
margin-bottom: 20px;

display: flex;
align-items: center;
justify-content: space-between;

.EezStudio_Component_Documentation_Title {
display: flex;
align-items: center;
font-size: 32px;
border-radius: 8px;
padding: 5px 15px;
width: fit-content;

& > div:nth-child(1) {
display: inline-flex;
img,
svg {
height: 36px;
object-fit: contain;
}
}

& > div:nth-child(2) {
padding-left: 10px;
}
}

.EezStudio_Component_Documentation_Title_ProjectTypes {
svg,
img {
margin-right: 10px;
}

svg:last_child,
img:last_child {
margin-right: 0;
}
}
}

.EezStudio_Component_Documentation_Body {
.EezStudio_Component_Documentation_BodySection {
& > h1:first-child {
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
}
& > div:nth-child(2) {
padding-left: 10px;
}
margin-bottom: 15px;

& div > dl > dt {
display: flex;
h2 {
margin-bottom: 0;
margin-right: 20px;
font-size: 14px;
line-height: var(--bs-body-line-height);
}
margin-bottom: 10px;
}

.accordion-item {
h2 {
font-size: 14px;
}
}

.accordion-body dt {
display: flex;
h3 {
margin-bottom: 0;
margin-right: 20px;
font-size: 14px;
line-height: var(--bs-body-line-height);
}
margin-bottom: 10px;
}
}
.EezStudio_Component_Documentation_BodySection:last-child {
margin-bottom: 0;
}
}
}
}
108 changes: 7 additions & 101 deletions packages/home/documentation-browser/generate-html.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import { resolve } from "path";
import { createRoot } from "react-dom/client";
import fs from "fs";

Expand All @@ -11,107 +12,6 @@ import { getModel } from "./model";
import { ComponentContent } from "./components/ComponentContent";
import { sourceRootDir } from "eez-studio-shared/util";

const CSS = `.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation {
flex: 1;
padding: 10px;
background-color: #fff;
overflow: auto;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure {
padding-bottom: 10px;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title {
display: flex;
align-items: center;
font-size: 32px;
border-radius: 8px;
padding: 5px 15px;
width: fit-content;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title
img,
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title
svg {
height: 36px;
object-fit: contain;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title
> div:last-child {
padding-left: 10px;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title_ProjectTypes
img,
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title_ProjectTypes
svg {
margin-right: 10px;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title_ProjectTypes
img:last_child,
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_TitleEnclosure
.EezStudio_Component_Documentation_Title_ProjectTypes
svg:last_child {
margin-right: 0;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_Body
.EezStudio_Component_Documentation_BodySection {
margin-bottom: 15px;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_Body
.EezStudio_Component_Documentation_BodySection
> div:first-child {
font-size: 18px;
font-weight: 700;
text-transform: uppercase;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_Body
.EezStudio_Component_Documentation_BodySection
> div:nth-child(2) {
padding-left: 10px;
}
.EezStudio_DocumentationBrowser_Content_Help
.EezStudio_Component_Documentation
.EezStudio_Component_Documentation_Body
.EezStudio_Component_Documentation_BodySection:last-child {
margin-bottom: 0;
}`;

async function generateHTMLFile(
componentInfo: ComponentInfo,
filePath: string
Expand All @@ -127,6 +27,12 @@ async function generateHTMLFile(

await new Promise(resolve => setTimeout(resolve, 10));

const cssFilePath = resolve(
`${sourceRootDir()}/eez-studio-ui/_stylesheets/component-doc.css`
);
console.log(cssFilePath);
let CSS = await fs.promises.readFile(cssFilePath, "utf8");

const html = `<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
Loading

0 comments on commit 6f9f658

Please sign in to comment.