Merge "Fix training-guides URLs"
This commit is contained in:
commit
a7edeeb99c
@ -612,8 +612,8 @@ blueprint training-manuals</computeroutput></screen>
|
|||||||
<para>Verify the code is good by running <command>mvn
|
<para>Verify the code is good by running <command>mvn
|
||||||
clean generate-sources</command> and by
|
clean generate-sources</command> and by
|
||||||
reviewing the local HTML in <link
|
reviewing the local HTML in <link
|
||||||
xlink:href="target/docbkx/webhelp/local/training-guide/content/"
|
xlink:href="target/docbkx/webhelp/training-guides/content/"
|
||||||
>file:///Users/<replaceable>username</replaceable>/code/openstack-manuals/doc/training-guide/target/docbkx/webhelp/local/training-guide/content/</link>.</para>
|
>file:///Users/<replaceable>username</replaceable>/code/openstack-manuals/doc/training-guides/target/docbkx/webhelp/training-guides/content/</link>.</para>
|
||||||
</step>
|
</step>
|
||||||
<step>
|
<step>
|
||||||
<para>Merge the branch.</para>
|
<para>Merge the branch.</para>
|
||||||
|
@ -52,7 +52,7 @@ def patternmatch(directory, docs_location, rstfile):
|
|||||||
except IOError:
|
except IOError:
|
||||||
#if file is a directory then recurse
|
#if file is a directory then recurse
|
||||||
print("patternmatch:in IOError:directory:" + directory + ", docs_location: " + docs_location + ", rstfile: " + rstfile)
|
print("patternmatch:in IOError:directory:" + directory + ", docs_location: " + docs_location + ", rstfile: " + rstfile)
|
||||||
os.mkdir(os.path.expanduser("./openstack-manuals/doc/training-guide/sources/" + directory + rstfile))
|
os.mkdir(os.path.expanduser("./openstack-manuals/doc/training-guides/sources/" + directory + rstfile))
|
||||||
walkdirectories(directory + docs_location, rstfile +"/")
|
walkdirectories(directory + docs_location, rstfile +"/")
|
||||||
#docs_location and rstfile are both directories in this case
|
#docs_location and rstfile are both directories in this case
|
||||||
return
|
return
|
||||||
@ -78,7 +78,7 @@ def patternmatch(directory, docs_location, rstfile):
|
|||||||
if good_file_found == "false":
|
if good_file_found == "false":
|
||||||
#jump out of called routine
|
#jump out of called routine
|
||||||
return
|
return
|
||||||
outfile = open("./openstack-manuals/doc/training-guide/sources/" +
|
outfile = open("./openstack-manuals/doc/training-guides/sources/" +
|
||||||
directory[0] + "/" + docs_location + outfilename[-1] + ".xml", "w+")
|
directory[0] + "/" + docs_location + outfilename[-1] + ".xml", "w+")
|
||||||
print(directory[0] + "/" + docs_location + outfilename[-1] + ".xml")
|
print(directory[0] + "/" + docs_location + outfilename[-1] + ".xml")
|
||||||
else:
|
else:
|
||||||
@ -99,7 +99,7 @@ def patternmatch(directory, docs_location, rstfile):
|
|||||||
if good_file_found == "false":
|
if good_file_found == "false":
|
||||||
#jump out of called routine
|
#jump out of called routine
|
||||||
return
|
return
|
||||||
outfile = open("./openstack-manuals/doc/training-guide/sources/" +
|
outfile = open("./openstack-manuals/doc/training-guides/sources/" +
|
||||||
directory + outfilename[-1] + ".xml", "w+")
|
directory + outfilename[-1] + ".xml", "w+")
|
||||||
print(directory + outfilename[-1] + ".xml")
|
print(directory + outfilename[-1] + ".xml")
|
||||||
#header of new xml file
|
#header of new xml file
|
||||||
@ -195,10 +195,10 @@ def walkdirectories(projectdirectory, sourcedirectory):
|
|||||||
def convert_rst_docbook5(repository_hash):
|
def convert_rst_docbook5(repository_hash):
|
||||||
for item in repository_hash:
|
for item in repository_hash:
|
||||||
print("convert_rst_docbook5:start convert rst: " + item + repository_hash[item])
|
print("convert_rst_docbook5:start convert rst: " + item + repository_hash[item])
|
||||||
os.system("rm -R ./openstack-manuals/doc/training-guide/sources/" + item)
|
os.system("rm -R ./openstack-manuals/doc/training-guides/sources/" + item)
|
||||||
try:
|
try:
|
||||||
#use try for when the remove directory fails
|
#use try for when the remove directory fails
|
||||||
os.mkdir("./openstack-manuals/doc/training-guide/sources/" + item)
|
os.mkdir("./openstack-manuals/doc/training-guides/sources/" + item)
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
walkdirectories(item, repository_hash[item])
|
walkdirectories(item, repository_hash[item])
|
||||||
@ -217,4 +217,4 @@ repository_hash = {'cinder/':"/doc/source/devref/"}
|
|||||||
os.chdir("../../../../")#root of repository directories in relation to ./training-guides/sources
|
os.chdir("../../../../")#root of repository directories in relation to ./training-guides/sources
|
||||||
create_repo(repository_hash)
|
create_repo(repository_hash)
|
||||||
pull_repo_updates(repository_hash)
|
pull_repo_updates(repository_hash)
|
||||||
convert_rst_docbook5(repository_hash)
|
convert_rst_docbook5(repository_hash)
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
# vagrant ssh vmname (ex: vagrant ssh compute)
|
# vagrant ssh vmname (ex: vagrant ssh compute)
|
||||||
#
|
#
|
||||||
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
||||||
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-lab
|
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guides/training-labs
|
||||||
nodes = {
|
nodes = {
|
||||||
'allinone' => 51,
|
'allinone' => 51,
|
||||||
# 'controller' => 51,
|
# 'controller' => 51,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# will cause deployment errors
|
# will cause deployment errors
|
||||||
#
|
#
|
||||||
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
||||||
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-labs
|
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guides/training-labs
|
||||||
|
|
||||||
#Change to the root user
|
#Change to the root user
|
||||||
sudo su -
|
sudo su -
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# will cause deployment errors
|
# will cause deployment errors
|
||||||
#
|
#
|
||||||
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
||||||
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-labs
|
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guides/training-labs
|
||||||
|
|
||||||
#Change to the root user
|
#Change to the root user
|
||||||
sudo su -
|
sudo su -
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# will cause deployment errors
|
# will cause deployment errors
|
||||||
#
|
#
|
||||||
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
||||||
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-labs
|
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guides/training-labs
|
||||||
|
|
||||||
#Change to the root user
|
#Change to the root user
|
||||||
sudo su -
|
sudo su -
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# will cause deployment errors
|
# will cause deployment errors
|
||||||
#
|
#
|
||||||
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
# See the remaining OpenStack Training Labs code for more details at GitHub:
|
||||||
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-labs
|
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guides/training-labs
|
||||||
|
|
||||||
#Change to the root user
|
#Change to the root user
|
||||||
sudo su -
|
sudo su -
|
||||||
|
Loading…
Reference in New Issue
Block a user