[install-guide/f21-branch] Add Anaconda help content placeholders

pbokoc pbokoc at fedoraproject.org
Wed Dec 10 14:56:42 UTC 2014


commit e611d1f95b5219d8ab9cc2e4968f22a0ead4cfe5
Author: Martin Kolman <mkolman at redhat.com>
Date:   Wed Dec 10 15:09:44 2014 +0100

    Add Anaconda help content placeholders
    
    To be used on screens not yet covered by the Installation Guide content
    or for addons not shipping their own documentation.
    
    Signed-off-by: Martin Kolman <mkolman at redhat.com>

 en-US/FedoraPlaceholder.html          |    5 +++++
 en-US/FedoraPlaceholderWithLinks.html |   13 +++++++++++++
 prepare_anaconda_help_content.py      |    6 ++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/en-US/FedoraPlaceholder.html b/en-US/FedoraPlaceholder.html
new file mode 100644
index 0000000..4d1781a
--- /dev/null
+++ b/en-US/FedoraPlaceholder.html
@@ -0,0 +1,5 @@
+<body>
+<h1>The Anaconda built-in help</h1>
+<p>...is not yet available for this screen.</p>
+<p>You can check the Anaconda wiki page, the Fedora Installation Guide or other online help resources instead.</p>
+</body>
diff --git a/en-US/FedoraPlaceholderWithLinks.html b/en-US/FedoraPlaceholderWithLinks.html
new file mode 100644
index 0000000..5fe0485
--- /dev/null
+++ b/en-US/FedoraPlaceholderWithLinks.html
@@ -0,0 +1,13 @@
+<body>
+<h1>The Anaconda built-in help</h1>
+<p>...is not yet available for this screen.</p>
+<p>You can check the Anaconda wiki page, the Fedora Installation Guide or other online help resources instead:</p>
+<p>
+<ul>
+    <li><a href="http://docs.fedoraproject.org/en-US/Fedora/20/html/Installation_Guide/">Fedora Installation Guide</a></li>
+    <li><a href="https://fedoraproject.org/wiki/Anaconda">Anaconda Wiki</a></li>
+    <li><a href="http://fedoraproject.org/wiki/Anaconda_Boot_Options">Anaconda Boot Options</a></li>
+    <li><a href="http://fedoraproject.org/wiki/Anaconda/Kickstart">Anaconda Kickstart</a></li>
+</ul>
+</p>
+</body>
diff --git a/prepare_anaconda_help_content.py b/prepare_anaconda_help_content.py
index df8733a..94160dd 100755
--- a/prepare_anaconda_help_content.py
+++ b/prepare_anaconda_help_content.py
@@ -9,6 +9,7 @@ import subprocess
 # in the lxml tree know their parents - this is handy when removing the figure tags
 from lxml import etree as ET
 
+PLACEHOLDERS = ["FedoraPlaceholderWithLinks.html", "FedoraPlaceholder.html"]
 INPUT_FOLDER = "en-US"
 OUTPUT_FOLDER = "anaconda_help_content/en-US"
 
@@ -190,5 +191,10 @@ run_xmllint()
 print("removing the entity file")
 os.remove(os.path.join(OUTPUT_FOLDER, "Installation_Guide.ent"))
 
+print("adding placeholders:")
+for placeholder in PLACEHOLDERS:
+    shutil.copy(os.path.join(INPUT_FOLDER, placeholder), OUTPUT_FOLDER)
+    print(placeholder)
+
 print("done!")
 exit(0)


More information about the docs-commits mailing list