Skip to content

Commit

Permalink
Merge tag 'docs-5.3-1' of git://git.lwn.net/linux
Browse files Browse the repository at this point in the history
Pull documentation fixes from Jonathan Corbet:
 "This is mostly a set of follow-on fixes from Mauro fixing various
  fallout from the massive RST conversion; a few other small fixes as
  well"

* tag 'docs-5.3-1' of git://git.lwn.net/linux: (21 commits)
  docs: phy: Drop duplicate 'be made'
  doc:it_IT: translations in process/
  docs/vm: transhuge: fix typo in madvise reference
  doc:it_IT: rephrase statement
  doc:it_IT: align translation to mainline
  docs: load_config.py: ensure subdirs end with "/"
  docs: virtual: add it to the documentation body
  docs: remove extra conf.py files
  docs: load_config.py: avoid needing a conf.py just due to LaTeX docs
  scripts/sphinx-pre-install: seek for Noto CJK fonts for pdf output
  scripts/sphinx-pre-install: cleanup Gentoo checks
  scripts/sphinx-pre-install: fix latexmk dependencies
  scripts/sphinx-pre-install: don't use LaTeX with CentOS 7
  scripts/sphinx-pre-install: fix script for RHEL/CentOS
  docs: conf.py: only use CJK if the font is available
  docs: conf.py: add CJK package needed by translations
  docs: pdf: add all Documentation/*/index.rst to PDF output
  docs: fix broken doc references due to renames
  docs: power: add it to to the main documentation index
  docs: powerpc: convert docs to ReST and rename to *.rst
  ...
  • Loading branch information
torvalds committed Jul 26, 2019
2 parents 0ed2886 + d2eba64 commit 3ea54d9
Show file tree
Hide file tree
Showing 70 changed files with 830 additions and 703 deletions.
5 changes: 4 additions & 1 deletion Documentation/PCI/pci-error-recovery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ That is, the recovery API only requires that:
.. note::

Implementation details for the powerpc platform are discussed in
the file Documentation/powerpc/eeh-pci-error-recovery.txt
the file Documentation/powerpc/eeh-pci-error-recovery.rst

As of this writing, there is a growing list of device drivers with
patches implementing error recovery. Not all of these patches are in
Expand All @@ -422,3 +422,6 @@ That is, the recovery API only requires that:
- drivers/net/cxgb3
- drivers/net/s2io.c
- drivers/net/qlge

The End
-------
2 changes: 1 addition & 1 deletion Documentation/RCU/rculist_nulls.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Using hlist_nulls to protect read-mostly linked lists and
objects using SLAB_TYPESAFE_BY_RCU allocations.

Please read the basics in Documentation/RCU/listRCU.txt
Please read the basics in Documentation/RCU/listRCU.rst

Using special makers (called 'nulls') is a convenient way
to solve following problem :
Expand Down
10 changes: 0 additions & 10 deletions Documentation/admin-guide/conf.py

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/admin-guide/mm/transhuge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ disabled, there is ``khugepaged`` daemon that scans memory and
collapses sequences of basic pages into huge pages.

The THP behaviour is controlled via :ref:`sysfs <thp_sysfs>`
interface and using madivse(2) and prctl(2) system calls.
interface and using madvise(2) and prctl(2) system calls.

Transparent Hugepage Support maximizes the usefulness of free memory
if compared to the reservation approach of hugetlbfs by allowing all
Expand Down
30 changes: 29 additions & 1 deletion Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import os
import sphinx

from subprocess import check_output

# Get Sphinx version
major, minor, patch = sphinx.version_info[:3]

Expand Down Expand Up @@ -276,10 +278,21 @@
\\setsansfont{DejaVu Sans}
\\setromanfont{DejaVu Serif}
\\setmonofont{DejaVu Sans Mono}
'''
}

# At least one book (translations) may have Asian characters
# with are only displayed if xeCJK is used

cjk_cmd = check_output(['fc-list', '--format="%{family[0]}\n"']).decode('utf-8', 'ignore')
if cjk_cmd.find("Noto Sans CJK SC") >= 0:
print ("enabling CJK for LaTeX builder")
latex_elements['preamble'] += '''
% This is needed for translations
\\usepackage{xeCJK}
\\setCJKmainfont{Noto Sans CJK SC}
'''

# Fix reference escape troubles with Sphinx 1.4.x
if major == 1 and minor > 3:
latex_elements['preamble'] += '\\renewcommand*{\\DUrole}[2]{ #2 }\n'
Expand Down Expand Up @@ -410,6 +423,21 @@
'The kernel development community', 'manual'),
]

# Add all other index files from Documentation/ subdirectories
for fn in os.listdir('.'):
doc = os.path.join(fn, "index")
if os.path.exists(doc + ".rst"):
has = False
for l in latex_documents:
if l[0] == doc:
has = True
break
if not has:
latex_documents.append((doc, fn + '.tex',
'Linux %s Documentation' % fn.capitalize(),
'The kernel development community',
'manual'))

# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
Expand Down
10 changes: 0 additions & 10 deletions Documentation/core-api/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/crypto/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/dev-tools/conf.py

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/arm/idle-states.txt
Original file line number Diff line number Diff line change
Expand Up @@ -703,4 +703,4 @@ cpus {
https://www.devicetree.org/specifications/

[6] ARM Linux Kernel documentation - Booting AArch64 Linux
Documentation/arm64/booting.txt
Documentation/arm64/booting.rst
10 changes: 0 additions & 10 deletions Documentation/doc-guide/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/driver-api/80211/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/driver-api/conf.py

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/driver-api/generic-counter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Userspace Interface
Several sysfs attributes are generated by the Generic Counter interface,
and reside under the /sys/bus/counter/devices/counterX directory, where
counterX refers to the respective counter device. Please see
Documentation/ABI/testing/sys-bus-counter-generic-sysfs for detailed
Documentation/ABI/testing/sysfs-bus-counter for detailed
information on each Generic Counter interface sysfs attribute.

Through these sysfs attributes, programs and scripts may interact with
Expand Down Expand Up @@ -325,7 +325,7 @@ sysfs attributes, where Y is the unique ID of the respective Count:

For a more detailed breakdown of the available Generic Counter interface
sysfs attributes, please refer to the
Documentation/ABI/testing/sys-bus-counter file.
Documentation/ABI/testing/sysfs-bus-counter file.

The Signals and Counts associated with the Counter device are registered
to the system as well by the counter_register function. The
Expand Down
4 changes: 2 additions & 2 deletions Documentation/driver-api/phy/phy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ PHY Mappings

In order to get reference to a PHY without help from DeviceTree, the framework
offers lookups which can be compared to clkdev that allow clk structures to be
bound to devices. A lookup can be made be made during runtime when a handle to
the struct phy already exists.
bound to devices. A lookup can be made during runtime when a handle to the
struct phy already exists.

The framework offers the following API for registering and unregistering the
lookups::
Expand Down
10 changes: 0 additions & 10 deletions Documentation/driver-api/pm/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/filesystems/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/gpu/conf.py

This file was deleted.

3 changes: 3 additions & 0 deletions Documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ needed).
netlabel/index
networking/index
pcmcia/index
power/index
target/index
timers/index
watchdog/index
virtual/index
input/index
hwmon/index
gpu/index
Expand Down Expand Up @@ -143,6 +145,7 @@ implementation.
arm64/index
ia64/index
m68k/index
powerpc/index
riscv/index
s390/index
sh/index
Expand Down
10 changes: 0 additions & 10 deletions Documentation/input/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/kernel-hacking/conf.py

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/locking/spinlocks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ itself. The read lock allows many concurrent readers. Anything that
**changes** the list will have to get the write lock.

NOTE! RCU is better for list traversal, but requires careful
attention to design detail (see Documentation/RCU/listRCU.txt).
attention to design detail (see Documentation/RCU/listRCU.rst).

Also, you cannot "upgrade" a read-lock to a write-lock, so if you at _any_
time need to do any changes (even if you don't do it every time), you have
to get the write-lock at the very beginning.

NOTE! We are working hard to remove reader-writer spinlocks in most
cases, so please don't add a new one without consensus. (Instead, see
Documentation/RCU/rcu.txt for complete information.)
Documentation/RCU/rcu.rst for complete information.)

----

Expand Down
10 changes: 0 additions & 10 deletions Documentation/maintainer/conf.py

This file was deleted.

12 changes: 0 additions & 12 deletions Documentation/media/conf.py

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/memory-barriers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ There are certain things that the Linux kernel memory barriers do not guarantee:

[*] For information on bus mastering DMA and coherency please read:

Documentation/PCI/pci.rst
Documentation/driver-api/pci/pci.rst
Documentation/DMA-API-HOWTO.txt
Documentation/DMA-API.txt

Expand Down
10 changes: 0 additions & 10 deletions Documentation/networking/conf.py

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/power/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
================
Power Management
Expand Down
Loading

0 comments on commit 3ea54d9

Please sign in to comment.