Skip to contentSkip to conversation

docs: User oriented documentation

PATCH In review Andrew Cooper 5 participants 16 messages Mar 19, 2019 – Mar 20, 2019

lore
Share & tools
lore
#0 lore raw

cover docs: User oriented documentation

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

 docs/Makefile                          |  24 +++-
 docs/admin-guide/index.rst             |   5 +
 docs/admin-guide/microcode-loading.rst | 103 ++++++++++++++++++
 docs/conf.py                           | 193 +++++++++++++++++++++++++++++++++
 docs/index.rst                         |  10 ++
 docs/sphinx/requirements.txt           |   3 +
 6 files changed, 336 insertions(+), 2 deletions(-)
 create mode 100644 docs/admin-guide/index.rst
 create mode 100644 docs/admin-guide/microcode-loading.rst
 create mode 100644 docs/conf.py
 create mode 100644 docs/index.rst
 create mode 100644 docs/sphinx/requirements.txt
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

PATCH 1/3 docs/sphinx: Skeleton setup

Sphinx is a documentation system, which is popular for technical writing. It uses ReStructuredText as its markup syntax, and is designed for whole-project documentation, rather than the misc assortment of individual files that we currently have.

This is a skeleton setup which just enough infrastructure to render an empty set of pages. It will become better integrated into Xen's docs system when it becomes less WIP.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Lars Kurth <[email protected]>

---
 docs/Makefile                |  12 +++
 docs/conf.py                 | 193 +++++++++++++++++++++++++++++++++++++++++++
 docs/index.rst               |   2 +
 docs/sphinx/requirements.txt |   3 +
 4 files changed, 210 insertions(+)
 create mode 100644 docs/conf.py
 create mode 100644 docs/index.rst
 create mode 100644 docs/sphinx/requirements.txt
docs/Makefile +12 -0
index 44aebf0..eda4bd8 100644
@@ -37,6 +37,18 @@ all: build
 .PHONY: build
 build: html txt pdf man-pages figs
 
+# WIP Sphinx/RST documentation.  Use virtualenv to get a suitable environment
+#
+# xen.git$ virtualenv venv-docs
+# xen.git$ . venv-docs/bin/activate
+# (venv-docs)xen.git$ pip install -r docs/sphinx/requirements.txt
+# (venv-docs)xen.git$ make -C docs/ sphinx-html
+# (venv-docs)xen.git$ deactivate
+# xen.git$
+.PHONY: sphinx-html
+sphinx-html:
+	sphinx-build -b html . sphinx/html
+
 .PHONY: html
 html: $(DOC_HTML) html/index.html
 
docs/conf.py new file +193 -0

193 lines not on this page · raw message

docs/index.rst new file +2 -0
new file mode 100644
index 0000000..732ebe0
@@ -0,0 +1,2 @@
+The Xen Hypervisor documentation
+================================
docs/sphinx/requirements.txt new file +3 -0
new file mode 100644
index 0000000..fa1393a
@@ -0,0 +1,3 @@
+docutils == 0.12
+Sphinx == 1.4.9
+sphinx_rtd_theme
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#2 lore raw

PATCH 2/3 docs/rst: Use pandoc to render ReStructuredText

In reply to Andrew Cooper

Sphinx uses ReStructuredText as its markup format. Although missing the project wide integration, individual *.rst files can be rendered by pandoc to suppliement our existing ad-hoc documentation.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Lars Kurth <[email protected]>

---
 docs/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
docs/Makefile +10 -2
index eda4bd8..0c1228c 100644
@@ -11,6 +11,8 @@ MAN_SECTIONS    := 1 5 7 8
 # Documentation sources to build
 MAN-SRC-y := $(sort $(basename $(wildcard man/*.pod man/*.pandoc)))
 
+RST-SRC-y := $(sort $(filter-out %index.rst,$(shell find * -type f -name '*.rst' -print)))
+
 TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print))
 
 PANDOCSRC-y := $(sort $(shell find designs/ features/ misc/ process/ specs/ -name '*.pandoc' -print))
@@ -22,13 +24,16 @@ $(foreach i,$(MAN_SECTIONS), \
 
 DOC_HTML := html/SUPPORT.html \
             $(patsubst %.pandoc,html/%.html,$(PANDOCSRC-y)) \
+            $(patsubst %.rst,html/%.html,$(RST-SRC-y)) \
             $(patsubst %,html/%.html,$(MAN-SRC-y)) \
             $(patsubst %.txt,html/%.txt,$(TXTSRC-y)) \
             $(patsubst %,html/hypercall/%/index.html,$(DOC_ARCHES))
 DOC_TXT  := $(patsubst %.txt,txt/%.txt,$(TXTSRC-y)) \
             $(patsubst %.pandoc,txt/%.txt,$(PANDOCSRC-y)) \
+            $(patsubst %.rst,txt/%.txt,$(RST-SRC-y)) \
             $(patsubst %,txt/%.txt,$(MAN-SRC-y))
-DOC_PDF  := $(patsubst %.pandoc,pdf/%.pdf,$(PANDOCSRC-y))
+DOC_PDF  := $(patsubst %.pandoc,pdf/%.pdf,$(PANDOCSRC-y)) \
+            $(patsubst %.rst,pdf/%.pdf,$(RST-SRC-y))
 
 # Top level build targets
 .PHONY: all
@@ -71,7 +76,7 @@ clean: clean-man-pages
 	$(MAKE) -C figs clean
 	rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~
 	rm -rf *.ilg *.log *.ind *.toc *.bak *.tmp core
-	rm -rf html txt pdf
+	rm -rf html txt pdf sphinx/html
 
 .PHONY: distclean
 distclean: clean
@@ -232,8 +237,11 @@ define GENERATE_PANDOC_RULE
 $(call GENERATE_PANDOC_RULE_RAW,$(1)/%.$(1),%.$(2))
 endef
 $(eval $(call GENERATE_PANDOC_RULE,pdf,pandoc))   # pdf/%.pdf: %.pandoc
+$(eval $(call GENERATE_PANDOC_RULE,pdf,rst))      # pdf/%.pdf: %.rst
 $(eval $(call GENERATE_PANDOC_RULE,txt,pandoc))   # txt/%.txt: %.pandoc
+$(eval $(call GENERATE_PANDOC_RULE,txt,rst))      # txt/%.txt: %.rst
 $(eval $(call GENERATE_PANDOC_RULE,html,pandoc))  # html/%.html: %.pandoc
+$(eval $(call GENERATE_PANDOC_RULE,html,rst))     # html/%.html: %.rst
 
 $(eval $(call GENERATE_PANDOC_RULE_RAW,html/SUPPORT.html,$(XEN_ROOT)/SUPPORT.md))
 
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#3 lore raw

PATCH 3/3 docs/admin-guide: Boot time microcode loading

In reply to Andrew Cooper

Recent discussion on xen-devel has demonstrated that Xen existing microcode loading support isn't adequately documented. Take the opportunity to address this, and start some end-user focused documentation.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Lars Kurth <[email protected]>

I've deliberately omitted runtime microcode loading at this point, because it is currently rather broken and its implementation is in flux. This document can be extended in due course.

---
 docs/admin-guide/index.rst             |   5 ++
 docs/admin-guide/microcode-loading.rst | 103 +++++++++++++++++++++++++++++++++
 docs/index.rst                         |   8 +++
 3 files changed, 116 insertions(+)
 create mode 100644 docs/admin-guide/index.rst
 create mode 100644 docs/admin-guide/microcode-loading.rst
docs/admin-guide/index.rst new file +5 -0
new file mode 100644
index 0000000..4d9bcb4
@@ -0,0 +1,5 @@
+User documentation
+==================
+
+.. toctree::
+   microcode-loading
docs/admin-guide/microcode-loading.rst new file +103 -0

103 lines not on this page · raw message

docs/index.rst +8 -0
index 732ebe0..ab3d0e0 100644
@@ -1,2 +1,10 @@
 The Xen Hypervisor documentation
 ================================
+
+User documentation
+------------------
+
+.. toctree::
+   :maxdepth: 2
+
+   admin-guide/index
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] docs/admin-guide: Boot time microcode loading

Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 19.03.19 at 17:20, <[email protected]> wrote:

Recent discussion on xen-devel has demonstrated that Xen existing microcode loading support isn't adequately documented. Take the opportunity to address this, and start some end-user focused documentation.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on the v1 series
#5 lore raw
In reply to Andrew Cooper
Quoted 12 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

Quoted 7 lines

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw
Quoted 16 lines · Wei Liu
Quoted 15 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Quoted 8 lines
Quoted 4 lines

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#7 lore raw
Quoted 24 lines · Andrew Cooper
Quoted 23 lines · Wei Liu
Quoted 12 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

Quoted 7 lines

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

Quoted 6 lines
Quoted 1 line

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

I don't think python depends on virtualenv -- it's the other way around on Debian.

Using virtualenv can isolate build from host python, but that's it. I don't think virtualenv is a hard dependency . Distros already package sphinx.

Wei.

Quoted 2 lines

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#8 lore raw
Quoted 30 lines · Wei Liu
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Wei Liu
Quoted 19 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

Quoted 8 lines
Quoted 4 lines

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

Quoted 6 lines

I don't think python depends on virtualenv -- it's the other way around on Debian.

Using virtualenv can isolate build from host python, but that's it. I don't think virtualenv is a hard dependency . Distros already package sphinx.

The point of using virtualenv is to get a known-compatible set of dependencies.  See docs/sphinx/requirements.txt in patch 1.

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#9 lore raw

Andrew Cooper writes ("Re: [PATCH 0/3] docs: User oriented documentation"):

Quoted 2 lines

The point of using virtualenv is to get a known-compatible set of dependencies. See docs/sphinx/requirements.txt in patch 1.

I don't think we need to have more curlbashware in the Xen build tree. Sphinx 1.4.9 is what is needed according to the metadata in your patch
1. It is in Debian stable. Likewise your metadata says docutils 0.12 is needed and Debian stable has 0.13.1.

Quoted 2 lines

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

On irc you wrote:

11:39 <Diziet> Why on earth do we need [virtualenv] ? 11:44 <andyhhp> in this case, because stretch has a known-buggy
combination of docutils and sphinx

That does not seem to be documented in your
docs/sphinx/requirements.txt.

Is the fix available in stretch-backports ?

I really don't want to install virtualenv on xenbits. Nor do I want anyone doing so ad-hoc in their filespace. This is not an appropriate approach to software distribution and management. And yes, I know that I am rejecting the underlying design principle of things like virtualenv, NPM, etc.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#10 lore raw
Quoted 7 lines · Ian Jackson

Andrew Cooper writes ("Re: [PATCH 0/3] docs: User oriented documentation"):

Quoted 2 lines

The point of using virtualenv is to get a known-compatible set of dependencies. See docs/sphinx/requirements.txt in patch 1.

I don't think we need to have more curlbashware in the Xen build tree. Sphinx 1.4.9 is what is needed according to the metadata in your patch
1. It is in Debian stable. Likewise your metadata says docutils 0.12 is needed and Debian stable has 0.13.1.

That's perhaps all well and fine.  Debian Jessie doesn't have a combination compatible with Xen's needs.

I haven't checked other distros.

Quoted 5 lines
Quoted 3 lines

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

On irc you wrote:

Quoted 8 lines

11:39 <Diziet> Why on earth do we need [virtualenv] ? 11:44 <andyhhp> in this case, because stretch has a known-buggy
combination of docutils and sphinx

That does not seem to be documented in your
docs/sphinx/requirements.txt.

Is the fix available in stretch-backports ?

It turns out that I mis-interpreted the compatibility note in

https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html# and
stretch is probably fine.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#11 lore raw

Andrew Cooper writes ("Re: [PATCH 0/3] docs: User oriented documentation"):

Quoted 3 lines

It turns out that I mis-interpreted the compatibility note in

https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html# and
stretch is probably fine.

OK, good.

Well, I think we could say that to build this documentation you have to have the relevant tools. sphinx is certainly well-regarded and this is probably a worthwhile upgrade.

What do the earlier tools do ? Should we print some warning and disable the build, or will they generate slightly-mangled output, or what ?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#12 lore raw
Quoted 6 lines · Ian Jackson

Andrew Cooper writes ("Re: [PATCH 0/3] docs: User oriented documentation"):

Quoted 3 lines

It turns out that I mis-interpreted the compatibility note in

https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html# and
stretch is probably fine.

OK, good.

Quoted 7 lines

Well, I think we could say that to build this documentation you have to have the relevant tools. sphinx is certainly well-regarded and this is probably a worthwhile upgrade.

What do the earlier tools do ? Should we print some warning and disable the build, or will they generate slightly-mangled output, or what ?

conf.py has version check in it.

On Jessie with native packages, the result is:

andrewcoop@andrewcoop:/local/xen.git/xen$ make -C ../docs/ sphinx-html
make: Entering directory '/local/xen.git/docs'
sphinx-build -b html . sphinx/html
Running Sphinx v1.2.3

Sphinx version error:
This project needs at least Sphinx v1.4 and therefore cannot be built with this version. Makefile:55: recipe for target 'sphinx-html' failed
make: *** [sphinx-html] Error 1
make: Leaving directory '/local/xen.git/docs'

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#13 lore raw
In reply to Andrew Cooper
Quoted 38 lines · Andrew Cooper
Quoted 30 lines · Wei Liu
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Wei Liu
Quoted 19 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

Quoted 8 lines
Quoted 4 lines

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

Quoted 6 lines

I don't think python depends on virtualenv -- it's the other way around on Debian.

Using virtualenv can isolate build from host python, but that's it. I don't think virtualenv is a hard dependency . Distros already package sphinx.

Quoted 5 lines

The point of using virtualenv is to get a known-compatible set of dependencies.  See docs/sphinx/requirements.txt in patch 1.

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

They can be fixed in due course.

In any case, I don't think virtualenv is a hard requirement -- I was thinking more along the line of developer / packager workflow. I think it would be beneficial to have this series in tree, so people can join the effort.

What to do on xenbits is another matter.

Wei.

Quoted 2 lines

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#14 lore raw
Quoted 45 lines · Wei Liu
Quoted 38 lines · Andrew Cooper
Quoted 30 lines · Wei Liu
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Wei Liu
Quoted 19 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

Quoted 8 lines
Quoted 4 lines

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

Quoted 6 lines

I don't think python depends on virtualenv -- it's the other way around on Debian.

Using virtualenv can isolate build from host python, but that's it. I don't think virtualenv is a hard dependency . Distros already package sphinx.

Quoted 5 lines

The point of using virtualenv is to get a known-compatible set of dependencies.  See docs/sphinx/requirements.txt in patch 1.

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

Quoted 8 lines

They can be fixed in due course.

In any case, I don't think virtualenv is a hard requirement -- I was thinking more along the line of developer / packager workflow. I think it would be beneficial to have this series in tree, so people can join the effort.

What to do on xenbits is another matter.

It seems like setting up a suitable sphinx environment should be done by the user (perhaps with some pointers). Our make system shouldn't be creating its own virtual environment. Having some scripts in automation/ would be useful, but it should be separate from the main doc build.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#15 lore raw
Quoted 51 lines · George Dunlap
Quoted 50 lines · Wei Liu
Quoted 34 lines · Andrew Cooper
Quoted 33 lines · Wei Liu
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Wei Liu
Quoted 19 lines · Andrew Cooper

This is a project I've been musing over for a long time now, to try and address Xen's almost complete absense of documentation.

This series, plus some other in-progress conversion of the command line doc, is available to view at:

https://andrewcoop-xen.readthedocs.io/en/latest/

This is read-the-docs's automatic CI build of documentation from a branch on gitlab. Observe that the docs don't look like they are out of the 90's, and are automatically translated into PDF and ePUB format as well.

In due course I'll see about updating xenbits.xen.org/docs to render this as well, but I don't have sufficient tuits at the moment.

Andrew Cooper (3):
docs/sphinx: Skeleton setup
docs/rst: Use pandoc to render ReStructuredText
docs/admin-guide: Boot time microcode loading

Quoted 8 lines
Quoted 4 lines

I don't think these changes introduce new dependencies in the build. Assuming my observation is correct:

In the short term, no.  In due course, we'll need virtualenv and a bit more integration for anyone wanting to build the sphinx tree locally, but I'm fairly sure we get virtualenv automatically by already having python as a build dependency.

I don't think python depends on virtualenv -- it's the other way around on Debian.

Quoted 8 lines
Quoted 3 lines

Using virtualenv can isolate build from host python, but that's it. I don't think virtualenv is a hard dependency . Distros already package sphinx.

The point of using virtualenv is to get a known-compatible set of dependencies.  See docs/sphinx/requirements.txt in patch 1.

Use of the distro-packaged versions of sphinx/rtd-theme/docutils may work, but can be very hit-and-miss.

They can be fixed in due course.

In any case, I don't think virtualenv is a hard requirement -- I was thinking more along the line of developer / packager workflow. I think it would be beneficial to have this series in tree, so people can join the effort.

Quoted 6 lines
Quoted 1 line

What to do on xenbits is another matter.

It seems like setting up a suitable sphinx environment should be done by the user (perhaps with some pointers). Our make system shouldn't be creating its own virtual environment. Having some scripts in automation/ would be useful, but it should be separate from the main doc build.

This patch series very deliberately doesn't set up a virtualenv, (because doing that automatically is not something I'm happy with Xen's makefiles doing) but does have minimal instructions beside the build target and one file committed into the tree to allow users to do it easily.  See patch 1.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel