Skip to content

Commit fe0373c

Browse files
Merge pull request #1236 from Kotlin/run_configs
Run configs
2 parents be95786 + 6c78f42 commit fe0373c

File tree

5 files changed

+57
-3
lines changed

5 files changed

+57
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Default ignored files
22
.idea
3+
!.idea/runConfigurations
4+
!.idea/runConfigurations/*.xml
35
!.idea/externalDependencies.xml
46
!.idea/vcs.xml
57
.gradle

.idea/runConfigurations/Build_Docs_Website.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_Docs_Website_Locally.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@ and included in the [StardustDocs/d.tree](./StardustDocs/d.tree) file.
1212

1313
Images all README files can be stored in [docs/imgs](./imgs).
1414

15+
## Running the Documentation Website Locally
16+
17+
⚠️ IFrames are not displayed when using the Writerside plugin preview. To view them correctly, you need to run the website locally.
18+
19+
### Option 1: Using IntelliJ IDEA Configurations
20+
21+
> Requires: `unzip` utility and **Python 3** installed in the environment. May not work properly on Windows.
22+
23+
1. Run the `Build Docs Website` configuration.
24+
2. Run the `Run Docs Website Locally` configuration.
25+
3. Open [http://localhost:8000/home.html](http://localhost:8000/home.html) in your browser.
26+
4. Shut down the server with Ctrl+C or close the terminal window.
27+
28+
### Option 2: Manual Steps
29+
30+
1. Go to `Writerside > DataFrame(d) > Export To > Build Docs Website` or find Writerside web archive build in IDEA configuration.
31+
2. Unzip the archive located at: `./build/ws/webHelpD2-all.zip`
32+
3. Start a local web server in the extracted folder (e.g., using Python or `http-server` utility):
33+
```bash
34+
python3 -m http.server
35+
# or
36+
http-server
37+
```
38+
4. Open [http://localhost:8000/home.html](http://localhost:8000/home.html) in your browser.
39+
5. Shut down the server with Ctrl+C or close the terminal window.
40+
1541
### Explainer dataframes
1642
`@TransformDataFrameExpressions` annotated test functions generate sample
1743
dataframe HTML files that can be used as iFrames on the documentation website.

tests/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ and they are copied over to Markdown files in [docs/StardustDocs/topics](../docs
77
by [Korro](https://github.com/devcrocod/korro).
88

99
This module might be merged with [:core](../core): [Issue #898](https://github.com/Kotlin/dataframe/issues/898).
10-
11-
See https://github.com/Kotlin/kandy/blob/samples_util/util/kandy-samples-utils/README.md for details of
12-
the Writerside docs generation.
10+
11+
Uses Kandy samples util.
12+
See https://github.com/Kotlin/kandy/blob/samples_util/util/kandy-samples-utils/README.md for more details.

0 commit comments

Comments
 (0)