mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-30 02:37:24 +02:00
Add warnings to Moire generated files.
This commit is contained in:
parent
5598a334e9
commit
9bc7600d97
5 changed files with 26 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
<!--
|
||||||
|
This is generated file.
|
||||||
|
Do not edit it manually, edit the Moire source file instead.
|
||||||
|
-->
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
<!--
|
||||||
|
This is generated file.
|
||||||
|
Do not edit it manually, edit the Moire source file instead.
|
||||||
|
-->
|
||||||
|
|
||||||
The **Map Machine** project consists of
|
The **Map Machine** project consists of
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<!--
|
||||||
|
This is generated file.
|
||||||
|
Do not edit it manually, edit the Moire source file instead.
|
||||||
|
-->
|
||||||
|
|
||||||
Install
|
Install
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
\title {Map Machine}
|
|
||||||
|
|
||||||
The \b {Map Machine} project consists of
|
The \b {Map Machine} project consists of
|
||||||
|
|
||||||
\list
|
\list
|
||||||
|
|
|
@ -265,6 +265,18 @@ class MapMachineMarkdown(MapMachineMoire, DefaultMarkdown):
|
||||||
|
|
||||||
images = {}
|
images = {}
|
||||||
|
|
||||||
|
def body(self, arg: Arguments) -> str:
|
||||||
|
"""Remove redundant new lines and add a warning."""
|
||||||
|
return (
|
||||||
|
"<!--\n"
|
||||||
|
" This is generated file.\n"
|
||||||
|
" Do not edit it manually, edit the Moire source file instead.\n"
|
||||||
|
"-->\n\n"
|
||||||
|
+ self.parse(arg[0], in_block=True)
|
||||||
|
.replace("\n\n\n", "\n\n")
|
||||||
|
.replace("\n\n\n", "\n\n")
|
||||||
|
)
|
||||||
|
|
||||||
def color(self, arg: Arguments) -> str:
|
def color(self, arg: Arguments) -> str:
|
||||||
"""Ignore colors in Markdown."""
|
"""Ignore colors in Markdown."""
|
||||||
return self.clear(arg[0])
|
return self.clear(arg[0])
|
||||||
|
|
Loading…
Add table
Reference in a new issue