18 Jun, 2021
1 commit
-
The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.Signed-off-by: Mauro Carvalho Chehab
Link: https://lore.kernel.org/r/d6cbe5183406e3378ed4bd0f84f4bcf85a15009c.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet
05 Feb, 2021
1 commit
-
Update the Cross-referencing section to explain how to create a
cross-reference to a document using relative paths and with no
additional syntax, by relying on automarkup.py.Signed-off-by: Nícolas F. R. A. Prado
Link: https://lore.kernel.org/r/20210128010028.58541-3-nfraprado@protonmail.com
Signed-off-by: Jonathan Corbet
01 Jan, 2021
1 commit
-
Various fixes to sphinx.rst:
- eliminate a double-space between 2 words
- grammar/wording
- punctuation
- call rows in a table 'rows' instead of 'columns' (or does Sphinx
call everything a column?)
- It seems that "amdfonts" should be "amsfonts". I can't find any
amdfonts.Signed-off-by: Randy Dunlap
Reviewed-by: Mauro Carvalho Chehab
Link: https://lore.kernel.org/r/20201228231212.22448-1-rdunlap@infradead.org
Signed-off-by: Jonathan Corbet
09 Dec, 2020
1 commit
-
Add missing ';' as well as fixes the indent for the first struct.
Signed-off-by: Ben Widawsky
Link: https://lore.kernel.org/r/20201207210027.1049346-1-ben.widawsky@intel.com
Signed-off-by: Jonathan Corbet
04 Dec, 2020
1 commit
-
Fix four typos in kcov.rst, sphinx.rst, clang-format.rst, and embargoed-hardware-issues.rst
Signed-off-by: Andrew Klychkov
Acked-by: Randy Dunlap
Acked-by: Miguel Ojeda
Link: https://lore.kernel.org/r/20201202075438.GA35516@spblnx124.lan
Signed-off-by: Jonathan Corbet
15 Oct, 2020
1 commit
-
Currently, there's no way to exclude identifiers from
a kernel-doc markup. Add support for it.Signed-off-by: Mauro Carvalho Chehab
17 Sep, 2020
1 commit
-
The syntax to cross-reference between documentation pages wasn't
documented anywhere.Document the cross-referencing using the new automarkup for
Documentation/... and also Sphinx's doc directive for using relative
paths.Signed-off-by: Nícolas F. R. A. Prado
Link: https://lore.kernel.org/r/20200911133339.327721-4-nfraprado@protonmail.com
Signed-off-by: Jonathan Corbet
04 Sep, 2020
1 commit
-
Update text and examples in the "Cross-referencing from
reStructuredText" section to reflect that no additional syntax is needed
anymore.Signed-off-by: Nícolas F. R. A. Prado
Link: https://lore.kernel.org/r/20200903005747.3900333-3-nfraprado@protonmail.com
Signed-off-by: Jonathan Corbet
11 Jun, 2020
1 commit
-
Pull more documentation updates from Jonathan Corbet:
"A handful of late-arriving docs fixes, along with a patch changing a
lot of HTTP links to HTTPS that had to be yanked and redone before the
first pull"* tag 'docs-5.8-2' of git://git.lwn.net/linux:
docs/memory-barriers.txt/kokr: smp_mb__{before,after}_atomic(): update Documentation
Documentation: devres: add missing entry for devm_platform_get_and_ioremap_resource()
Replace HTTP links with HTTPS ones: documentation
docs: it_IT: address invalid reference warnings
doc: zh_CN: use doc reference to resolve undefined label warning
docs: Update the location of the LF NDA program
docs: dev-tools: coccinelle: underlines
08 Jun, 2020
1 commit
-
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.Deterministic algorithm:
For each file:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.Signed-off-by: Alexander A. Klimov
Link: https://lore.kernel.org/r/20200526060544.25127-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet
04 Jun, 2020
1 commit
-
Pull media updates from Mauro Carvalho Chehab:
- Media documentation is now split into admin-guide, driver-api and
userspace-api books (a longstanding request from Jon);- The media Kconfig was reorganized, in order to make easier to select
drivers and their dependencies;- The testing drivers now has a separate directory;
- added a new driver for Rockchip Video Decoder IP;
- The atomisp staging driver was resurrected. It is meant to work with
4 generations of cameras on Atom-based laptops, tablets and cell
phones. So, it seems worth investing time to cleanup this driver and
making it in good shape.- Added some V4L2 core ancillary routines to help with h264 codecs;
- Added an ov2740 image sensor driver;
- The si2157 gained support for Analog TV, which, in turn, added
support for some cx231xx and cx23885 boards to also support analog
standards;- Added some V4L2 controls (V4L2_CID_CAMERA_ORIENTATION and
V4L2_CID_CAMERA_SENSOR_ROTATION) to help identifying where the camera
is located at the device;- VIDIOC_ENUM_FMT was extended to support MC-centric devices;
- Lots of drivers improvements and cleanups.
* tag 'media/v5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (503 commits)
media: Documentation: media: Refer to mbus format documentation from CSI-2 docs
media: s5k5baf: Replace zero-length array with flexible-array
media: i2c: imx219: Drop and
media: i2c: Add ov2740 image sensor driver
media: ov8856: Implement sensor module revision identification
media: ov8856: Add devicetree support
media: dt-bindings: ov8856: Document YAML bindings
media: dvb-usb: Add Cinergy S2 PCIe Dual Port support
media: dvbdev: Fix tuner->demod media controller link
media: dt-bindings: phy: phy-rockchip-dphy-rx0: move rockchip dphy rx0 bindings out of staging
media: staging: dt-bindings: phy-rockchip-dphy-rx0: remove non-used reg property
media: atomisp: unify the version for isp2401 a0 and b0 versions
media: atomisp: update TODO with the current data
media: atomisp: adjust some code at sh_css that could be broken
media: atomisp: don't produce errs for ignored IRQs
media: atomisp: print IRQ when debugging
media: atomisp: isp_mmu: don't use kmem_cache
media: atomisp: add a notice about possible leak resources
media: atomisp: disable the dynamic and reserved pools
media: atomisp: turn on camera before setting it
...
21 Apr, 2020
1 commit
-
Some broken references happened due to shifting files around
and ReST renames. Those can't be auto-fixed by the script,
so let's fix them manually.Signed-off-by: Mauro Carvalho Chehab
Acked-by: Corentin Labbe
Link: https://lore.kernel.org/r/64773a12b4410aaf3e3be89e3ec7e34de2484eea.1586881715.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet
14 Apr, 2020
1 commit
-
Since 2017, there is an space reserved for userspace API,
created by changeset 1d596dee3862 ("docs: Create a user-space API guide").As the media subsystem was one of the first subsystems to use
Sphinx, until this patch, we were keeping things on a separate
place.Let's just use the new location, as having all uAPI altogether
will likely make things easier for developers.Signed-off-by: Mauro Carvalho Chehab
06 Feb, 2020
1 commit
-
Fix for several documentation build warnings related to missing blank lines
after explicit mark up.Exact warning message:
WARNING: Explicit markup ends without a blank line; unexpected unindent.Signed-off-by: Sameer Rahmani
Link: https://lore.kernel.org/r/20200203201543.24834-1-lxsameer@gnu.org
Signed-off-by: Jonathan Corbet
25 Jan, 2020
2 commits
-
Documentation should lead by example, so here's a basic maintainer entry
profile for this subsystem.Reviewed-by: Matthew Wilcox (Oracle)
Signed-off-by: Jonathan Corbet -
This is mostly a collection of thoughts for how people who want to help out
can make the docs better. Hopefully the world will respond with a flurry
of useful patches.Acked-by: Jani Nikula
Reviewed-by: Matthew Wilcox (Oracle)
Reviewed-by: Randy Dunlap
Signed-off-by: Jonathan Corbet
08 Nov, 2019
1 commit
-
The 'functions' directive is not only for functions, but also works for
structs/unions. So the name is misleading. This patch renames it to
'identifiers', which specific the functions/types to be included in
documentation. We keep the old name as an alias of the new one before
all documentation are updated.Signed-off-by: Changbin Du
Signed-off-by: Jonathan Corbet
17 Jul, 2019
1 commit
-
Now that the latex_documents are handled automatically, we can
remove those extra conf.py files.Signed-off-by: Mauro Carvalho Chehab
28 Jun, 2019
1 commit
-
fix the disjunction by replacing "of" with "or".
Signed-off-by: Sheriff Esseson
Signed-off-by: Jonathan Corbet
27 Jun, 2019
1 commit
-
Now that we can mark up function() automatically, there is no reason to use
:c:func: and every reason to avoid it. Adjust the documentation to reflect
that fact.Signed-off-by: Jonathan Corbet
15 Jun, 2019
1 commit
-
There's a paragraph that explains how to create fixed width text block,
but it doesn't explains how to create fixed width text inline, although
this feature is really used through the documentation. Fix that adding a
quick note about it.Signed-off-by: André Almeida
Signed-off-by: Jonathan Corbet
31 May, 2019
1 commit
-
As discussed at the linux-doc ML, while we'll still support
version 1.3, it is time to recommend a more modern version.So, let's switch the minimal requirements to Sphinx 1.7.9,
as it has the "-jauto" flag, with makes a lot faster when
building documentation.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet
20 Apr, 2019
1 commit
-
On almost all places, we're including ReST files without the
extension.Let's remove the extension here as well, in order to use just
one standard.Suggested-by: Jani Nikula
Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet
18 Feb, 2019
1 commit
-
"If no *function* if specified" should instead be
"If no *function* is specified".Reported-by: Matthew Wilcox
Signed-off-by: Frank Rowand
Signed-off-by: Jonathan Corbet
02 Feb, 2019
2 commits
-
Fix a typo in kernel-doc.rst
Signed-off-by: Frank Rowand
Signed-off-by: Jonathan Corbet -
(1) The command to generate man pages is truncated in the pdf version
of the document. Reformat the command into multiple lines to prevent
the truncation.(2) Older versions of git do not support all variants of pathspec
syntax. Provide commands to generate man pages for various
alternate syntax.Signed-off-by: Frank Rowand
Signed-off-by: Jonathan Corbet
15 Jan, 2019
1 commit
-
While using this guide to learn the new documentation method, I saw
a few phrases that I felt could be improved. These small changes
improve the grammar and choice of words to further enhance the
installation instructions.Signed-off-by: Joel Nider
Acked-by: Mike Rapoport
Acked-by: Matthew Wilcox
Signed-off-by: Jonathan Corbet
07 Dec, 2018
1 commit
-
Some documents are refering to others without links. With this
patch I add those missing links.This patch affects only documents under process/ and labels where
necessary.Signed-off-by: Federico Vaga
Signed-off-by: Jonathan Corbet
08 Nov, 2018
1 commit
-
In the Function documentation Section of kernel-doc.rst
there is a function_name() function as an example for
how to make a comment about a function.But at the end of that example there is a reference to foobar
instead of function_name.I think that should rather be function_name, because that
was the placeholder the whole example was using.Signed-off-by: Joris Gutjahr
Signed-off-by: Jonathan Corbet
30 Jun, 2018
1 commit
-
When kernel-doc:: specified in .rst document without explicit directives,
it outputs both comment and DOC: sections. If a DOC: section was explicitly
included in the same document it will be duplicated. For example, the
output generated for Documentation/core-api/idr.rst [1] has "IDA
description" in the "IDA usage" section and in the middle of the API
reference.This patch enables using "functions" directive without parameters to output
all the documentation excluding DOC: sections.[1] https://www.kernel.org/doc/html/v4.17/core-api/idr.html
Signed-off-by: Mike Rapoport
Acked-by: Matthew Wilcox
Signed-off-by: Jonathan Corbet
26 Jun, 2018
2 commits
-
The description speaks about the option ``--man`` but it
does not exist. Instead, there is the option ``--usage``$ ./Documentation/sphinx/parse-headers.pl --man
Unknown option: man
Usage:
parse_headers.pl [] []Where can be: --debug, --help or --man.
Signed-off-by: Federico Vaga
Signed-off-by: Jonathan Corbet -
Fix a typo in sphinx.rst and a minor error in parse-header.rst
Signed-off-by: Federico Vaga
Signed-off-by: Jonathan Corbet
04 May, 2018
1 commit
-
From now on, I'll start using my @kernel.org as my development e-mail.
As such, let's remove the entries that point to the old
mchehab@s-opensource.com at MAINTAINERS file.For the files written with a copyright with mchehab@s-opensource,
let's keep Samsung on their names, using mchehab+samsung@kernel.org,
in order to keep pointing to my employer, with sponsors the work.For the files written before I join Samsung (on July, 4 2013),
let's just use mchehab@kernel.org.For bug reports, we can simply point to just kernel.org, as
this will reach my mchehab+samsung inbox anyway.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Brian Warner
Signed-off-by: Mauro Carvalho Chehab
23 Feb, 2018
1 commit
-
Currently there is no automated checking for kernel-doc comments except
running 'kernel-doc -v -none '. Mention the possibility to run
kernel-doc to verify formatting of the comments in the kernel-doc guide.Signed-off-by: Mike Rapoport
Signed-off-by: Jonathan Corbet
19 Feb, 2018
4 commits
-
It helps to give some examples about how to use in-line
comments also when nested union/structs are present. So add it.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet -
We want to give some examples about how to do in-line comments
for nested structs. So, move it to be after nested structs/unions
chapter.The section content was not changed on this patch.
Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet -
Without ending with a ";", kernel-doc doesn't recognize it
as an struct, and it fails to parse the example.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet -
There's a missing */ at the end of Kernel docs example.
Even adding it, it will still produce 3 warnings:example:33: warning: Function parameter or member 'bar' not described in 'nested_foobar'
example:33: warning: Function parameter or member 'bar.st1' not described in 'nested_foobar'
example:33: warning: Function parameter or member 'bar.st2' not described in 'nested_foobar'So, make the example more complete and add the missing end
of comment there.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Jonathan Corbet
14 Feb, 2018
2 commits
-
I found the layout confusing with multiple introductions to what
kernel-doc is and how to use it.I made the following changes:
- Moved the 'Including kernel-doc comments' section to the end of
the document -- we should explain what it *is* before we explain
how to integrate it.
- Moved the 'Recommendations' subsection to the top. We want people
to know what to document before telling them how to do it.
- Rewrite the 'Writing kernel-doc comments' section, integrating
the 'Recommendations' subsection and a paragraph from 'How to format
kernel-doc comments'.
- Remove the paragraph about the kernel-doc script; we're supposed to
be teaching people how to use punctuation to write pretty documentation,
not documenting the build tooling.
- Split the 'Parameters and member arguments' section into 'Function
parameters' and 'Members'. Structure members are not commonly
referred to as arguments.
- Integrate the 'private:' and 'public:' tag descriptions into the
'Members' section.
- Move the 'In-line member documentation comments' subsection up to be
with the 'Members' section.Signed-off-by: Matthew Wilcox
Signed-off-by: Jonathan Corbet -
Line up the second line in the way that the example purports to be
showing.Signed-off-by: Matthew Wilcox
Signed-off-by: Jonathan Corbet