I don't think it's a trivial question. It would be nice if we had a minimal example of embedding CQ models in a web page, but we don't at this time. CadQuery is capable of exporting to TJS (Three.js) JSON format, so you can use a Three.js viewer. That is the way most of the web rendering of CadQuery models is done. I'll give you some info below, and if you need some help adapting the code I can try to help.
The docs use a Sphinx plugin called
sphinx-cadquery, created by community member @Peque . The
sphinxcadquerystatic folder in that project holds the 3D viewer component that you see in the docs.
You could also reuse the code from my
cadquery-gui project, which is Electron based (html and javascript). It has a toolbar with preset view buttons. The viewer code for that is
here, but the render settings have never been updated, so sphinxcadquery looks a lot nicer.
You want to embed the model in a page so
jupyter-cadquery is overkill,
but I'll mention it since it's another way to display/develop models in a
browser.
Lastly, you can try the following to try to update your CadQuery environment. It could break that environment though, so you might end up having to start a new conda environment and installing the latest CadQuery fresh into that anyway.
conda remove cadquery
conda clean --all --force-pkgs-dirs
conda install --force-reinstall -c conda-forge -c cadquery cadquery=master