- Python 3
- BeautifulSoup
- Pretty decent internet connection
In order to start docset build process, run:
python3 kotlin2docset.pyThis will start querying main KotlinLang pages. The process itself takes a lot of time, since all the URLs are queried one by one.
After webpages are downloaded, HTML files are parsed and mapped by assigned elements to proper docset categories (methods, classes, etc). Then, a docset file is generated in the script's main directory.
After docset generation, find styles.css file and change:
-
Removing header with search bar
.global-header-panelsetdisplay:none;.global-headersetdisplay:none;.docs-nav, .docs-nav-newsetdisplay:none;
-
Removing footer
.global-footersetdisplay:none;
-
Removing left navigation menu from content
.g-gridremovemargin-right:-30px;- add
.g-3{display:none;} - add
.page-contentsetwidth:100%;