

OptaPlanner documentation turns over a new leaf - KIE Community
source link: https://blog.kie.org/2021/12/optaplanner-documentation-turns-over-a-new-leaf.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

OptaPlanner documentation turns over a new leaf
For years, OptaPlanner has been offering the documentation in two formats:
single-page HTML and PDF.
This now changes with the launch a new documentation website, built using Antora.
What’s so exciting about the new documentation?
First and foremost, it loads instantly as opposed to the old single-page HTML documentation.
For example, if I want to read about repeated planning,
I open the single-page HTML docs and wait nearly half a minute for the page to load, despite having a very good cable connection.
With the new documentation, it took me only 2 seconds as each chapter has its own HTML page and thus
the content that has to be loaded is limited.
This also means it’s now easier to effectively share links to a particular section.
Second, now you can search through the entire docs:

The search box at the top of the page shows suggestions as soon as you start typing. Each suggestion consists of
the chapter and a link to where the search term occurs.
Third, if you spot a discrepancy in the documentation and would like to improve it, contributing was never easier:

Finally, this new documentation website is much friendlier to search engines, which should make it show up in Google search results more often than before.
Building the documentation website
The documentation sources remain in
the optaplanner-docs module in the optaplanner repository,
but the website assembly, named optaplanner-website-docs
, became a part of the optaplanner-website:

Similarly to the entire optaplanner-website
, the optaplanner-website-docs
is built using Maven. The Maven module
acts as a wrapper over Antora, which generates the static site from AsciiDoc sources.
There are two Antora playbooks referring to documentation sources. The first one, used by default, is antora-playbook.yml
that refers to the latest OptaPlanner release.
...
content:
edit_url: '{web_url}/edit/main/{path}'
sources:
- url: [email protected]:kiegroup/optaplanner.git
# Updates with every release to point to the latest release branch.
branches: [8.12.x]
start_path: optaplanner-docs/src
...
To render the latest documentation:
cd optaplanner-website/optaplanner-website-docs
mvn clean package
- Open the
index.html
located intarget/website/docs
in your browser.
The second Antora playbook, antora-playbook-author.yml
, is activated by the author
maven profile and
refers to the current optaplanner local Git repository HEAD.
...
content:
edit_url: '{web_url}/edit/main/{path}'
sources:
# Assuming the optaplanner local repository resides next to the optaplanner-website.
- url: ../../optaplanner
branches: [HEAD]
start_path: optaplanner-docs/src
...
To preview local changes in the documentation:
- Make sure the optaplanner and optaplanner-website Git repositories are located in the same directory or change the local URL accordingly.
cd optaplanner-website/optaplanner-website-docs
mvn clean package -Pauthor
- Open the
index.html
located intarget/website/docs
in your browser.
Supported documentation formats
Introducing new formats does not have to result in abandoning the old ones, and in our case it does not.
While I encourage everyone to visit the new documentation website, the existing formats continue to be published with
every release as before.
Also, should you need to have a look at a particular version of the documentation,
it’s still at your hand in the archive.
Conclusion
Since the 8.12.0.Final
release, there is a new documentation website available under https://www.optaplanner.org/docs.
The documentation is now structured into pages by chapters and searchable. The single-page HTML and PDF documentation
remains available for every release.
Recommend
-
76
What is the fastest way to read a getter from a Java class without knowing the class at compilation time? Java frameworks often do this. A lot. And it can directly influence their performance. So let’s benchmark different approaches, such as...
-
50
OptaPlanner finally supports multithreaded incremental solving.The speedup is spectacular. Even with just a few CPU cores, it triples the score calculation speed.See the results below. To activate it, a single extra line in the configuration suf...
-
38
Over the years, politicians have redrawn electoral voting lines to gain an unfair advantage.This has led to district boundaries with shapes that have no obvious pattern or reason other than political gain.When districts are redrawn you can sway...
-
80
Connecting to the iTunes Store. Connecting to the iTunes Store.... If you don't have iTunes, ...
-
21
A BPMN diagram models a Business Process. When the BusinessProcess involves optimization at some step,OptaPlanner can help you quickly find an optimal solution.Now with Kogito, it is easier than ever before to integrateOptaPlanner into your BPMN...
-
14
pmem.ioPersistent Memory Programming Zero-copy leaf splits in pmemkv In a B+ tree, splitting a...
-
15
Order picking optimization in warehouses and supermarkets with OptaPlanner Order picking optimization in warehouses and supermarkets with OptaPlanner
-
10
最近一段时间,因为忙于【易排(EasyPlan)规划平台】的设计与开发工作,平台的一些功能设计,需要对OptaPlanner的各种特性作更深入的研究与应用。慢慢发现,OptaPlanner进入8.X版本之后,变化还是挺大的。对于我个人的项目、平台及咨询工作,这些变化中,大部分...
-
4
The Folio Society turns over a new leaf with NetSuite By Phil Wainewright
-
10
Runme turns your documentation into interactive runbooksInteractive RunbooksBuilt with MarkdownRunme combines your docs with everything great about scripting and pipelines.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK