Advanced usage of dexweb involves editing dexweb library to generate custom dexs. This allows custom dex design like first line descriptions of each page in index page, no alphabetic sorting and other features. All variables in Dex Configuration were built with custom dexweb libraries.
To edit dexweb library:
1. Create a virtual environment
python -m venv venv
2. Run virtual environment
Linux/Mac OS:
source ./venv/bin/activate
Windows:
./venv/Scripts/activate
3. Install dexweb
pip install dexweb
4. Open code editor of choice
5. Open in editor dexgen.py
located at
Linux/Mac OS:
/venv/lib/python{version}/site-packages/dexweb/dexgen.py
Windows:
/venv/Lib/site-packages/dexweb/dexgen.py
6. Edit dexgen.py
for custom functionality. Save for your custom version of dexweb.
7. In virtual environment, run
python run.py
8. Open gen/index.html
in a browser to view dex generated with custom dexweb.