I found a bug with ydk-gen
When you generate documentation using the --generate-doc flag the html files reference a CSS file that does not exist. This line gets put in the HTML <head> section of every page...
<link rel="stylesheet" href="_static/css/width.css" type="text/css">
If you look in the "_static" directory you will see this file does not exist but the "theme.css" does exist.
If you edit this to
<link rel="stylesheet" href="_static/css/theme.css" type="text/css">
Then the pages load correctly.
Go to Solution.
Makes sense now. Thanks! This will be fixed soon on the ydk-gen repo
View solution in original post
Thanks! Do you have a link in the ydk-gen github repo to the file you re talking about?
I’m sorry, not sure what you are asking? I just did…
virtualenv -p python2.7 ydk-gen-venv-27
git clone https://github.com/CiscoDevNet/ydk-gen.git
pip install -r requirements.txt
python generate.py --python --bundle profiles/bundles/cisco-ios-xe_16_5_1.json -v --generate-doc
Then, I tried to access the “index.html” file that gets created under…
And that is where I found the mal-formed HTML files with the incorrect CSS file name.
In case it helps, note that XE docs are currently hosted at http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html
Also, Python package is now in PyPi at ydk-models-cisco-ios-xe · Warehouse (PyPI)
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: