-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
145 changed files
with
18,181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 76b4d14aa6e1bc0c4ec305c50dc4b968 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
**************** | ||
Public mdpo APIs | ||
**************** | ||
|
||
md2po | ||
===== | ||
|
||
.. automodule:: mdpo.md2po | ||
:members: markdown_to_pofile | ||
:noindex: | ||
|
||
po2md | ||
===== | ||
|
||
.. automodule:: mdpo.po2md | ||
:members: pofile_to_markdown | ||
:noindex: | ||
|
||
md2po2md | ||
======== | ||
|
||
.. automodule:: mdpo.md2po2md | ||
:members: markdown_to_pofile_to_markdown | ||
:noindex: | ||
|
||
mdpo2html | ||
========= | ||
|
||
.. automodule:: mdpo.mdpo2html | ||
:members: markdown_pofile_to_html | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
********* | ||
Changelog | ||
********* | ||
|
||
.. changelog:: | ||
:changelog-url: https://github.com/mondeja/mdpo/releases/ | ||
:github: https://github.com/mondeja/mdpo/releases/ | ||
:pypi: https://pypi.org/project/mdpo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
*********************** | ||
Command line interfaces | ||
*********************** | ||
|
||
mdpo installation includes four command line interfaces: | ||
|
||
* :ref:`cli:md2po` is used to dump strings from Markdown files into PO files as | ||
msgids. | ||
* :ref:`cli:po2md` is used to produce a translated Markdown file from a source | ||
Markdown file and a PO file with extracted msgids and translated msgstrs. | ||
* :ref:`cli:md2po2md` is a convenient wrapper for :ref:`cli:md2po` and | ||
:ref:`cli:po2md`. | ||
* :ref:`cli:mdpo2html` is used to produce a translated HTML file from a source | ||
HTML file produced from Markdown file using a Markdown-to-HTML converter, and | ||
a PO file of reference for strings. | ||
|
||
.. raw:: html | ||
|
||
<hr> | ||
|
||
md2po | ||
===== | ||
|
||
.. sphinx_argparse_cli:: | ||
:module: mdpo.md2po.__main__ | ||
:func: build_parser | ||
:prog: md2po | ||
:title: | ||
|
||
.. raw:: html | ||
|
||
<hr> | ||
|
||
po2md | ||
===== | ||
|
||
.. sphinx_argparse_cli:: | ||
:module: mdpo.po2md.__main__ | ||
:func: build_parser | ||
:prog: po2md | ||
:title: | ||
|
||
markdownlint compatible configuration | ||
************************************* | ||
|
||
The output produced by :ref:`cli:po2md` is compatible with the following | ||
`Markdownlint configuration`_: | ||
|
||
.. code-block:: json | ||
{ | ||
"no-blanks-blockquote": false, | ||
"no-bare-urls": false, | ||
"no-inline-html": false, | ||
"ul-indent": { | ||
"indent": 3 | ||
} | ||
} | ||
.. raw:: html | ||
|
||
<hr> | ||
|
||
md2po2md | ||
======== | ||
|
||
.. sphinx_argparse_cli:: | ||
:module: mdpo.md2po2md.__main__ | ||
:func: build_parser | ||
:prog: md2po2md | ||
:title: | ||
|
||
.. raw:: html | ||
|
||
<hr> | ||
|
||
mdpo2html | ||
========= | ||
|
||
.. sphinx_argparse_cli:: | ||
:module: mdpo.mdpo2html.__main__ | ||
:func: build_parser | ||
:prog: mdpo2html | ||
:title: | ||
|
||
.. raw:: html | ||
|
||
<script> | ||
var argumentsSubsectionTitles = document.getElementsByTagName("H3"); | ||
for (let i=0; i<argumentsSubsectionTitles.length; i++) { | ||
let subsectionTitle = argumentsSubsectionTitles[i].childNodes[0]; | ||
if (subsectionTitle.data.indexOf("markdownlint") == -1) { | ||
subsectionTitle.data = subsectionTitle.data.split(" ").slice(1).join(" "); | ||
} | ||
} | ||
</script> | ||
|
||
.. _Markdownlint configuration: https://github.com/DavidAnson/markdownlint#configuration |
Oops, something went wrong.