Skip to contentSkip to conversation

docs: Convert alias and bridge to rst

PATCH Superseded Tobin C. Harding 2 participants 7 messages Jul 17, 2018 – Jul 18, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover docs: Convert alias and bridge to rst

Hi Dave,

Here is my first attempt at working on converting docs in Documentation/networking to rst format. I've picked a couple of trivial ones to start with. If there is anything extra I can do to make your life easier during documentation conversion please say. (Also if there is some reason that it would be preferable to _not_ embark on this task please say :)

This set does not make any changes to the converted files apart from formatting.

thanks,
Tobin.

Tobin C. Harding (3):
docs: networking: Fix indices heading indentation
docs: networking: Convert alias.txt to rst
docs: networking: Convert bridge.txt to rst

 Documentation/networking/00-INDEX             |  2 -
 Documentation/networking/alias.rst            | 49 +++++++++++++++++++
 Documentation/networking/alias.txt            | 40 ---------------
 .../networking/{bridge.txt => bridge.rst}     |  6 +++
 Documentation/networking/index.rst            |  6 ++-
 5 files changed, 59 insertions(+), 44 deletions(-)
 create mode 100644 Documentation/networking/alias.rst
 delete mode 100644 Documentation/networking/alias.txt
 rename Documentation/networking/{bridge.txt => bridge.rst} (85%)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/3 docs: networking: Fix indices heading indentation

Currently the 'Indices' heading is not aligned with column 0, it should be.

Fix 'Indices' heading indentation.

---
 Documentation/networking/index.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/index.rst +2 -2
index 6123a7e9e1da..a4bbde70bcb9 100644
@@ -20,7 +20,7 @@ Contents:
 
 .. only::  subproject
 
-   Indices
-   =======
+Indices
+=======
 
    * :ref:`genindex`
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH net-next 1/3] docs: networking: Fix indices heading indentation

Am Dienstag, den 17.07.2018, 14:29 +1000 schrieb Tobin C. Harding:

Quoted 2 lines

Currently the 'Indices' heading is not aligned with column 0, it should be.

Hi Tobin, thats not correct. The 'Indices' heading is a part of the 'only' block:

http://www.sphinx-doc.org/en/stable/markup/misc.html#including-content-based-on-tags

-- Markus --

Quoted 22 lines

Fix 'Indices' heading indentation.

---
 Documentation/networking/index.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/index.rst +2 -2
index 6123a7e9e1da..a4bbde70bcb9 100644
@@ -20,7 +20,7 @@ Contents:
 
 .. only::  subproject
 
-   Indices
-   =======
+Indices
+=======
 
    * :ref:`genindex`
#3 lore raw

Re: [PATCH net-next 1/3] docs: networking: Fix indices heading indentation

Am Dienstag, den 17.07.2018, 10:28 +0200 schrieb Markus Heiser:

Quoted 10 lines

Am Dienstag, den 17.07.2018, 14:29 +1000 schrieb Tobin C. Harding:

Quoted 2 lines

Currently the 'Indices' heading is not aligned with column 0, it should be.

Hi Tobin, thats not correct. The 'Indices' heading is a part of the 'only' block:

http://www.sphinx-doc.org/en/stable/markup/misc.html#including-content-based-on-tags

-- Markus --

I realized that we have not well documented SPHINXDIRS, to be more elaborate ..

The tag 'subproject' will be set from the networking/conf.py if you run:

make -k SPHINXDIRS="networking" htmldocs

to just build only the networking folder (aka subproject). For more info, please run 'make help' and take a look at the 'Documentation targets' section.

In short: a subfolder of Documentation/ with a conf.py file in, is a subproject and can be build separate.

-- Markus --

Quoted 28 lines
Quoted 14 lines

Fix 'Indices' heading indentation.

---
 Documentation/networking/index.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/index.rst +0 -0
index 6123a7e9e1da..a4bbde70bcb9 100644

Documentation/networking/index.rst Contents: · line 26

Quoted 9 lines
Documentation/networking/index.rst +2 -2
@@ -20,7 +20,7 @@ Contents:
 
 .. only::  subproject
 
-   Indices
-   =======
+Indices
+=======
 
    * :ref:`genindex`

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: [PATCH net-next 1/3] docs: networking: Fix indices heading indentation

In reply to Markus Heiser
Quoted 6 lines · Markus Heiser

Am Dienstag, den 17.07.2018, 14:29 +1000 schrieb Tobin C. Harding:

Quoted 2 lines

Currently the 'Indices' heading is not aligned with column 0, it should be.

Hi Tobin, thats not correct. The 'Indices' heading is a part of the 'only' block:

Thanks for picking this up Markus. A little knowledge is dangerous eh :) Will remove this patch from the set and re-spin.

thanks,
Tobin.

#5 lore raw

PATCH 2/3 docs: networking: Convert alias.txt to rst

In reply to Tobin C. Harding

The kernel documentation is now restructured text. Convert the IP aliasing documentation and include it in the toplevel kernel documentation.

- Fix heading adornments.
- Correctly indent code snippets.
- Limit line length to 72 characters inline with kernel documentation standards.
- Add license identifier.

---
 Documentation/networking/00-INDEX  |  2 --
 Documentation/networking/alias.rst | 49 ++++++++++++++++++++++++++++++
 Documentation/networking/alias.txt | 40 ------------------------
 Documentation/networking/index.rst |  1 +
 4 files changed, 50 insertions(+), 42 deletions(-)
 create mode 100644 Documentation/networking/alias.rst
 delete mode 100644 Documentation/networking/alias.txt
Documentation/networking/00-INDEX +0 -2
index 2b89d91b376f..1e5153ed8990 100644
@@ -18,8 +18,6 @@ README.ipw2200
 	- README for the Intel PRO/Wireless 2915ABG and 2200BG driver.
 README.sb1000
 	- info on General Instrument/NextLevel SURFboard1000 cable modem.
-alias.txt
-	- info on using alias network devices.
 altera_tse.txt
 	- Altera Triple-Speed Ethernet controller.
 arcnet-hardware.txt
Documentation/networking/alias.rst new file +49 -0

49 lines not on this page · raw message

Documentation/networking/alias.txt deleted +0 -40
deleted file mode 100644
index 85046f53fcfc..000000000000
@@ -1,40 +0,0 @@
-
-IP-Aliasing:
-============
-
-IP-aliases are an obsolete way to manage multiple IP-addresses/masks
-per interface. Newer tools such as iproute2 support multiple
-address/prefixes per interface, but aliases are still supported
-for backwards compatibility.
-
-An alias is formed by adding a colon and a string when running ifconfig.
-This string is usually numeric, but this is not a must.
-
-o Alias creation.
-  Alias creation is done by 'magic' interface naming: eg. to create a
-  200.1.1.1 alias for eth0 ...
-  
-    # ifconfig eth0:0 200.1.1.1  etc,etc....
-                   ~~ -> request alias #0 creation (if not yet exists) for eth0
-
-    The corresponding route is also set up by this command. 
-    Please note: The route always points to the base interface.
-	
-
-o Alias deletion.
-  The alias is removed by shutting the alias down:
-
-    # ifconfig eth0:0 down
-                 ~~~~~~~~~~ -> will delete alias
-
-  		   		   
-o Alias (re-)configuring
-
-  Aliases are not real devices, but programs should be able to configure and
-  refer to them as usual (ifconfig, route, etc).
-
-
-o Relationship with main device
-
-  If the base device is shut down the added aliases will be deleted 
-  too.
Documentation/networking/index.rst +1 -0
index a4bbde70bcb9..65502f2031a8 100644
@@ -17,6 +17,7 @@ Contents:
    msg_zerocopy
    failover
    net_failover
+   alias
 
 .. only::  subproject
 
Signature · 1 line
2.17.1
#6 lore raw

PATCH 3/3 docs: networking: Convert bridge.txt to rst

In reply to Tobin C. Harding

The kernel documentation is now restructured text. Convert the Ethernet Bridge documentation and include it in the toplevel kernel documentation.

- Fix heading adornments.
- Add license identifier.

---
 Documentation/networking/{bridge.txt => bridge.rst} | 6 ++++++
 Documentation/networking/index.rst                  | 1 +
 2 files changed, 7 insertions(+)
 rename Documentation/networking/{bridge.txt => bridge.rst} (85%)
Documentation/networking/bridge.rst renamed from Documentation/networking/bridge.txt +6 -0
similarity index 85%
rename from Documentation/networking/bridge.txt
rename to Documentation/networking/bridge.rst
index a27cb6214ed7..4aef9cddde2f 100644
@@ -1,3 +1,9 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=================
+Ethernet Bridging
+=================
+
 In order to use the Ethernet bridging functionality, you'll need the
 userspace tools.
 
Documentation/networking/index.rst +1 -0
index 65502f2031a8..d75da2ff25c7 100644
@@ -18,6 +18,7 @@ Contents:
    failover
    net_failover
    alias
+   bridge
 
 .. only::  subproject
 
Signature · 1 line
2.17.1