Skip to contentSkip to conversation

doc: remove dejavu font from doc build

PATCH Superseded John McNamara 3 participants 13 messages Oct 20, 2015 – Dec 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: remove dejavu font from doc build

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

---
 doc/guides/conf.py | 1 -
 1 file changed, 1 deletion(-)
doc/guides/conf.py +0 -1
index 8cfb7d3..e060462 100644
@@ -61,7 +61,6 @@ latex_documents = [
 # Latex directives to be included directly in the latex/pdf docs.
 latex_preamble = r"""
 \usepackage[utf8]{inputenc}
-\usepackage{DejaVuSansMono}
 \usepackage[T1]{fontenc}
 \usepackage{helvet}
 \renewcommand{\familydefault}{\sfdefault}
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

From: dev [mailto:[email protected]] On Behalf Of John McNamara
Sent: Tuesday, October 20, 2015 12:32 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] doc: remove dejavu font from doc build

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

#2 lore raw
In reply to John McNamara

2015-10-20 12:32, John McNamara:

Quoted 3 lines

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

Does it remove the need for texlive-collection-fontsextra?

#3 lore raw
Quoted 7 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, October 26, 2015 2:25 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] doc: remove dejavu font from doc build

Quoted 6 lines

2015-10-20 12:32, John McNamara:

Quoted 3 lines

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

Does it remove the need for texlive-collection-fontsextra?

Hi Thomas,

Possibly. I'll need to test to make sure. I'll let you know.

John.

#4 lore raw
In reply to Thomas Monjalon
Quoted 9 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, October 26, 2015 2:25 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] doc: remove dejavu font from doc build

Quoted 6 lines

2015-10-20 12:32, John McNamara:

Quoted 3 lines

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

Does it remove the need for texlive-collection-fontsextra?

Hi,

I checked and it does remove the requirement for texlive-fonts-recommended in Ubuntu and texlive-collection-fontsextra in Fedora.

I'll submit a v2 with those requirements removed from the Documentation Guidelines.

John.

#5 lore raw

2015-10-29 11:35, Mcnamara, John:

Quoted 6 lines

From: Thomas Monjalon [mailto:[email protected]]

Quoted 5 lines

2015-10-20 12:32, John McNamara:

Quoted 3 lines

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

Quoted 7 lines
Quoted 1 line

Does it remove the need for texlive-collection-fontsextra?

Hi,

I checked and it does remove the requirement for texlive-fonts-recommended in Ubuntu and texlive-collection-fontsextra in Fedora.

I'll submit a v2 with those requirements removed from the Documentation Guidelines.

Please remove it from the RPM packaging script also. Thanks

#6 lore raw

PATCH v2 1/1 doc: remove dejavu font from doc build

In reply to John McNamara

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

---
 doc/guides/conf.py                        |  1 -
 doc/guides/contributing/documentation.rst | 20 ++++++++------------
 pkg/dpdk.spec                             |  2 +-
 3 files changed, 9 insertions(+), 14 deletions(-)
doc/guides/conf.py +0 -1
index b2290b4..4a4fad2 100644
@@ -59,7 +59,6 @@ latex_documents = [
 # Latex directives to be included directly in the latex/pdf docs.
 latex_preamble = r"""
 \usepackage[utf8]{inputenc}
-\usepackage{DejaVuSansMono}
 \usepackage[T1]{fontenc}
 \usepackage{helvet}
 \renewcommand{\familydefault}{\sfdefault}
doc/guides/contributing/documentation.rst +8 -12
index 7f5f061..6b8a5c6 100644
@@ -142,7 +142,7 @@ The following dependencies must be installed to build the documentation:
 
 * Sphinx (also called python-sphinx).
 
-* TexLive (at least TexLive-core, extra Latex support and extra fonts).
+* TexLive.
 
 * Inkscape.
 
@@ -158,18 +158,17 @@ It can be installed as follows:
    sudo yum     -y install doxygen
 
 `Sphinx`_ is a Python documentation tool for converting RST files to Html or to PDF (via LaTeX).
-It can be installed as follows:
+For full support with figure and table captioning the latest version of Sphinx can be installed as follows:
 
 .. code-block:: console
 
    # Ubuntu/Debian.
-   sudo apt-get -y install python-sphinx
+   sudo apt-get -y install python-pip
+   sudo pip install --upgrade sphinx
 
    # Red Hat/Fedora.
-   sudo yum     -y install python-sphinx
-
-   # Or, on any system with Python installed.
-   sudo easy_install -U sphinx
+   sudo yum     -y install python-pip
+   sudo pip install --upgrade sphinx
 
 For further information on getting started with Sphinx see the `Sphinx Tutorial <http://sphinx-doc.org/tutorial.html>`_.
 
@@ -196,13 +195,10 @@ The main required packages can be installed as follows:
 .. code-block:: console
 
    # Ubuntu/Debian.
-   sudo apt-get -y install texlive-latex-extra texlive-fonts-extra \
-                           texlive-fonts-recommended
-
+   sudo apt-get -y install texlive-latex-extra
 
    # Red Hat/Fedora, selective install.
-   sudo yum     -y install texlive-collection-latexextra \
-                           texlive-collection-fontsextra
+   sudo yum     -y install texlive-collection-latexextra
 
 
 Build commands
pkg/dpdk.spec +1 -1
index acbb2be..2d27d40 100644
@@ -46,7 +46,7 @@ ExclusiveArch: i686, x86_64
 
 BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel
 BuildRequires: doxygen, python-sphinx, inkscape
-BuildRequires: texlive-collection-latexextra, texlive-collection-fontsextra
+BuildRequires: texlive-collection-latexextra
 
 %description
 DPDK core includes kernel modules, core libraries and tools.
Signature · 1 line
1.8.1.4
#7 lore raw

2015-11-01 14:13, John McNamara:

Quoted 6 lines

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

[...]

doc/guides/contributing/documentation.rst The following dependencies must be installed to build the documentation: · line 145

Quoted 4 lines
doc/guides/contributing/documentation.rst +1 -1
-* TexLive (at least TexLive-core, extra Latex support and extra fonts).
+* TexLive.

Why not keep minimum requirements? (TexLive-core and extra Latex support)

#8 lore raw
Quoted 8 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Sunday, November 1, 2015 3:00 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [PATCH v2] doc: remove dejavu font from doc build

Why not keep minimum requirements? (TexLive-core and extra Latex support)

Hi,

Mainly because the requirements are now at the minimum with only one package required.

John.

#9 lore raw

2015-11-01 16:35, Mcnamara, John:

Quoted 7 lines
Quoted 7 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Sunday, November 1, 2015 3:00 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [PATCH v2] doc: remove dejavu font from doc build

Quoted 5 lines
Quoted 1 line

Why not keep minimum requirements? (TexLive-core and extra Latex support)

Hi,

Mainly because the requirements are now at the minimum with only one package required.

If we don't give tips about how to install a minimum texlive, it means we have to install the whole texlive distribution which is a huge dependency.

#10 lore raw
Quoted 16 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Sunday, November 1, 2015 6:32 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [PATCH v2] doc: remove dejavu font from doc build

2015-11-01 16:35, Mcnamara, John:

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Sunday, November 1, 2015 3:00 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [PATCH v2] doc: remove dejavu font from doc build

Quoted 5 lines
Quoted 1 line

Mainly because the requirements are now at the minimum with only one

package required.

If we don't give tips about how to install a minimum texlive, it means we have to install the whole texlive distribution which is a huge dependency.

Ok. I'll put that back in.

#11 lore raw

PATCH v3 1/1 doc: remove dejavu font from doc build

In reply to John McNamara

Remove requirement for occasionally hard to find/install DejaVuSansMono font. It isn't gnerally required anyway. The default mono font is sufficient.

---
 doc/guides/conf.py                        |  1 -
 doc/guides/contributing/documentation.rst | 20 ++++++++------------
 pkg/dpdk.spec                             |  2 +-
 3 files changed, 9 insertions(+), 14 deletions(-)
doc/guides/conf.py +0 -1
index b2290b4..4a4fad2 100644
@@ -59,7 +59,6 @@ latex_documents = [
 # Latex directives to be included directly in the latex/pdf docs.
 latex_preamble = r"""
 \usepackage[utf8]{inputenc}
-\usepackage{DejaVuSansMono}
 \usepackage[T1]{fontenc}
 \usepackage{helvet}
 \renewcommand{\familydefault}{\sfdefault}
doc/guides/contributing/documentation.rst +8 -12
index 7f5f061..6dfaaa8 100644
@@ -142,7 +142,7 @@ The following dependencies must be installed to build the documentation:
 
 * Sphinx (also called python-sphinx).
 
-* TexLive (at least TexLive-core, extra Latex support and extra fonts).
+* TexLive (at least TexLive-core and the extra Latex support).
 
 * Inkscape.
 
@@ -158,18 +158,17 @@ It can be installed as follows:
    sudo yum     -y install doxygen
 
 `Sphinx`_ is a Python documentation tool for converting RST files to Html or to PDF (via LaTeX).
-It can be installed as follows:
+For full support with figure and table captioning the latest version of Sphinx can be installed as follows:
 
 .. code-block:: console
 
    # Ubuntu/Debian.
-   sudo apt-get -y install python-sphinx
+   sudo apt-get -y install python-pip
+   sudo pip install --upgrade sphinx
 
    # Red Hat/Fedora.
-   sudo yum     -y install python-sphinx
-
-   # Or, on any system with Python installed.
-   sudo easy_install -U sphinx
+   sudo yum     -y install python-pip
+   sudo pip install --upgrade sphinx
 
 For further information on getting started with Sphinx see the `Sphinx Tutorial <http://sphinx-doc.org/tutorial.html>`_.
 
@@ -196,13 +195,10 @@ The main required packages can be installed as follows:
 .. code-block:: console
 
    # Ubuntu/Debian.
-   sudo apt-get -y install texlive-latex-extra texlive-fonts-extra \
-                           texlive-fonts-recommended
-
+   sudo apt-get -y install texlive-latex-extra
 
    # Red Hat/Fedora, selective install.
-   sudo yum     -y install texlive-collection-latexextra \
-                           texlive-collection-fontsextra
+   sudo yum     -y install texlive-collection-latexextra
 
 
 Build commands
pkg/dpdk.spec +1 -1
index acbb2be..2d27d40 100644
@@ -46,7 +46,7 @@ ExclusiveArch: i686, x86_64
 
 BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel
 BuildRequires: doxygen, python-sphinx, inkscape
-BuildRequires: texlive-collection-latexextra, texlive-collection-fontsextra
+BuildRequires: texlive-collection-latexextra
 
 %description
 DPDK core includes kernel modules, core libraries and tools.
Signature · 1 line
1.8.1.4