doc: Minor cosmetic changes

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2019-10-22 14:32:21 -07:00 committed by James Valleroy
parent 004ba5b3ea
commit f475a94581
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ SCRIPTS_DIR=scripts
# #
XMLTO_DEBUG_FLAGS= XMLTO_DEBUG_FLAGS=
ifneq ($(DEBUG),) ifneq ($(DEBUG),)
XMLTO_DEBUG_FLAGS=--noclean -p '--debug' XMLTO_DEBUG_FLAGS=--noclean -p '--debug'
endif endif
all: $(OUTPUTS) all: $(OUTPUTS)

View File

@ -41,9 +41,9 @@
<!-- Output just the filename from a URL --> <!-- Output just the filename from a URL -->
<xsl:template match="@fileref[parent::imagedata]"> <xsl:template match="@fileref[parent::imagedata]">
<xsl:attribute name="fileref"> <xsl:attribute name="fileref">
<xsl:call-template name="filename"> <xsl:call-template name="filename">
<xsl:with-param name="path" select="."/> <xsl:with-param name="path" select="."/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
</xsl:template> </xsl:template>

View File

@ -44,7 +44,7 @@ def subcommand_fix_wiki_urls(arguments):
with open(file_name, 'r') as xml_file: with open(file_name, 'r') as xml_file:
lines = xml_file.readlines() lines = xml_file.readlines()
pattern = 'FreedomBox/Manual/{0}/FreedomBox'.format(page_name) pattern = f'FreedomBox/Manual/{page_name}/FreedomBox'
lines = list(map(lambda s: s.replace(pattern, 'FreedomBox'), lines)) lines = list(map(lambda s: s.replace(pattern, 'FreedomBox'), lines))
with open(file_name, 'w') as xml_file: with open(file_name, 'w') as xml_file: