| commit | 8f38ac07a2488cee299bdf80c8139a0244c1a66c | [log] [tgz] |
|---|---|---|
| author | Jeff Kim <kimkb2011@gmail.com> | Wed Dec 11 10:52:57 2024 -0500 |
| committer | Jeff Kim <kimkb2011@gmail.com> | Wed Dec 11 10:52:57 2024 -0500 |
| tree | 2976fc814d42c5a0d88acbc017410b23c4b3c497 | |
| parent | 03d1dc4f50b5c310026d31b604c8a2f433a45b8c [diff] |
format
The documentation can be hosted on a local webserver via httpd.
You can run it with the following command, note that it requires docker:
./start-preview.sh
Then you can open localhost:8080 on your browser and browse the documentation.
To kill the process, just type ctrl + c.
# change directory into kafka repository cd KAFKA_REPO ./gradlew clean siteDocTar # supposing built with scala 2.13 tar zxvf core/build/distributions/kafka_2.13-$(./gradlew properties | grep version: | awk '{print $NF}' | head -n 1)-site-docs.tgz
# change directory into kafka-site repository cd KAFKA_SITE_REPO # copy the generated documents into dev folder rm -rf dev mkdir dev cp -r KAFKA_REPO/site-docs/* dev # preview it ./start-preview.sh
Then you can open http://localhost:8080/dev/documentation/ on your browser and browse the generated documentation.