From c72c910371230e904d92cee0513cf686b896d2dd Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Wed, 5 Jan 2022 16:40:46 +0000 Subject: [PATCH 1/2] Rename all .txt files to .rst --- docutils/{BUGS.txt => BUGS.rst} | 0 docutils/{COPYING.txt => COPYING.rst} | 0 docutils/{FAQ.txt => FAQ.rst} | 0 docutils/{HISTORY.txt => HISTORY.rst} | 0 docutils/{README.txt => README.rst} | 0 docutils/{RELEASE-NOTES.txt => RELEASE-NOTES.rst} | 0 docutils/{THANKS.txt => THANKS.rst} | 0 docutils/docs/api/{cmdline-tool.txt => cmdline-tool.rst} | 0 docutils/docs/api/{publisher.txt => publisher.rst} | 0 docutils/docs/api/{runtime-settings.txt => runtime-settings.rst} | 0 docutils/docs/dev/{distributing.txt => distributing.rst} | 0 docutils/docs/dev/{enthought-plan.txt => enthought-plan.rst} | 0 docutils/docs/dev/{enthought-rfp.txt => enthought-rfp.rst} | 0 docutils/docs/dev/{hacking.txt => hacking.rst} | 0 docutils/docs/dev/{policies.txt => policies.rst} | 0 docutils/docs/dev/{pysource.txt => pysource.rst} | 0 docutils/docs/dev/{release.txt => release.rst} | 0 docutils/docs/dev/{repository.txt => repository.rst} | 0 docutils/docs/dev/rst/{alternatives.txt => alternatives.rst} | 0 docutils/docs/dev/rst/{problems.txt => problems.rst} | 0 docutils/docs/dev/{semantics.txt => semantics.rst} | 0 docutils/docs/dev/{testing.txt => testing.rst} | 0 docutils/docs/dev/{todo.txt => todo.rst} | 0 docutils/docs/dev/{website.txt => website.rst} | 0 .../docs/howto/{html-stylesheets.txt => html-stylesheets.rst} | 0 docutils/docs/howto/{i18n.txt => i18n.rst} | 0 docutils/docs/howto/{rst-directives.txt => rst-directives.rst} | 0 docutils/docs/howto/{rst-roles.txt => rst-roles.rst} | 0 docutils/docs/howto/{security.txt => security.rst} | 0 docutils/docs/{index.txt => index.rst} | 0 docutils/docs/peps/{pep-0256.txt => pep-0256.rst} | 0 docutils/docs/peps/{pep-0257.txt => pep-0257.rst} | 0 docutils/docs/peps/{pep-0258.txt => pep-0258.rst} | 0 docutils/docs/peps/{pep-0287.txt => pep-0287.rst} | 0 docutils/docs/ref/{doctree.txt => doctree.rst} | 0 docutils/docs/ref/rst/{definitions.txt => definitions.rst} | 0 docutils/docs/ref/rst/{directives.txt => directives.rst} | 0 docutils/docs/ref/rst/{introduction.txt => introduction.rst} | 0 docutils/docs/ref/rst/{mathematics.txt => mathematics.rst} | 0 .../docs/ref/rst/{restructuredtext.txt => restructuredtext.rst} | 0 docutils/docs/ref/rst/{roles.txt => roles.rst} | 0 docutils/docs/ref/{transforms.txt => transforms.rst} | 0 docutils/docs/user/{config.txt => config.rst} | 0 docutils/docs/user/{emacs.txt => emacs.rst} | 0 docutils/docs/user/{html.txt => html.rst} | 0 docutils/docs/user/{latex.txt => latex.rst} | 0 docutils/docs/user/{links.txt => links.rst} | 0 docutils/docs/user/{mailing-lists.txt => mailing-lists.rst} | 0 docutils/docs/user/{manpage.txt => manpage.rst} | 0 docutils/docs/user/{odt.txt => odt.rst} | 0 docutils/docs/user/rst/{cheatsheet.txt => cheatsheet.rst} | 0 docutils/docs/user/rst/{demo.txt => demo.rst} | 0 docutils/docs/user/rst/{quickstart.txt => quickstart.rst} | 0 docutils/docs/user/{slide-shows.txt => slide-shows.rst} | 0 docutils/docs/user/{smartquotes.txt => smartquotes.rst} | 0 docutils/docs/user/{tools.txt => tools.rst} | 0 .../docutils/writers/s5_html/themes/{README.txt => README.rst} | 0 docutils/test/data/{config_1.txt => config_1.rst} | 0 docutils/test/data/{config_2.txt => config_2.rst} | 0 .../data/{config_error_handler.txt => config_error_handler.rst} | 0 docutils/test/data/{config_list.txt => config_list.rst} | 0 docutils/test/data/{config_list_2.txt => config_list_2.rst} | 0 docutils/test/data/{config_old.txt => config_old.rst} | 0 docutils/test/data/{csv_data.txt => csv_data.rst} | 0 docutils/test/data/{csv_dep.txt => csv_dep.rst} | 0 docutils/test/data/{dependencies.txt => dependencies.rst} | 0 docutils/test/data/{full-template.txt => full-template.rst} | 0 docutils/test/data/{include.txt => include.rst} | 0 docutils/test/data/{latin1.txt => latin1.rst} | 0 docutils/test/data/{raw.txt => raw.rst} | 0 docutils/test/data/{stylesheet.txt => stylesheet.rst} | 0 docutils/test/functional/{README.txt => README.rst} | 0 ...{standalone_rst_pseudoxml.txt => standalone_rst_pseudoxml.rst} | 0 .../functional/input/{compact_lists.txt => compact_lists.rst} | 0 docutils/test/functional/input/{cyrillic.txt => cyrillic.rst} | 0 docutils/test/functional/input/{dangerous.txt => dangerous.rst} | 0 .../input/data/{classes_latex.txt => classes_latex.rst} | 0 .../{comprehensive-math-test.txt => comprehensive-math-test.rst} | 0 .../functional/input/data/{custom_roles.txt => custom_roles.rst} | 0 .../input/data/{custom_roles_latex.txt => custom_roles_latex.rst} | 0 .../functional/input/data/{embed_images.txt => embed_images.rst} | 0 docutils/test/functional/input/data/{errors.txt => errors.rst} | 0 .../input/data/{header_footer.txt => header_footer.rst} | 0 .../input/data/{html5-features.txt => html5-features.rst} | 0 .../data/{html5-text-level-tags.txt => html5-text-level-tags.rst} | 0 .../functional/input/data/{hyperlinking.txt => hyperlinking.rst} | 0 .../input/data/{latex-problematic.txt => latex-problematic.rst} | 0 .../input/data/{latex_encoding.txt => latex_encoding.rst} | 0 .../test/functional/input/data/{list_table.txt => list_table.rst} | 0 docutils/test/functional/input/data/{math.txt => math.rst} | 0 .../input/data/{nonalphanumeric.txt => nonalphanumeric.rst} | 0 .../functional/input/data/{option_lists.txt => option_lists.rst} | 0 .../input/data/{section_titles.txt => section_titles.rst} | 0 .../test/functional/input/data/{standard.txt => standard.rst} | 0 .../test/functional/input/data/{svg_images.txt => svg_images.rst} | 0 .../test/functional/input/data/{swf_images.txt => swf_images.rst} | 0 .../input/data/{table_colspan.txt => table_colspan.rst} | 0 .../input/data/{table_complex.txt => table_complex.rst} | 0 .../input/data/{table_rowspan.txt => table_rowspan.rst} | 0 .../functional/input/data/{tables_latex.txt => tables_latex.rst} | 0 docutils/test/functional/input/data/{unicode.txt => unicode.rst} | 0 docutils/test/functional/input/data/{urls.txt => urls.rst} | 0 docutils/test/functional/input/data/{video.txt => video.rst} | 0 docutils/test/functional/input/{field_list.txt => field_list.rst} | 0 docutils/test/functional/input/{footnotes.txt => footnotes.rst} | 0 .../test/functional/input/{latex_babel.txt => latex_babel.rst} | 0 .../input/{latex_cornercases.txt => latex_cornercases.rst} | 0 .../functional/input/{latex_docinfo.txt => latex_docinfo.rst} | 0 .../input/{latex_leavevmode.txt => latex_leavevmode.rst} | 0 .../input/{latex_literal_block.txt => latex_literal_block.rst} | 0 .../input/{misc_rst_html4css1.txt => misc_rst_html4css1.rst} | 0 .../functional/input/{misc_rst_html5.txt => misc_rst_html5.rst} | 0 docutils/test/functional/input/{odt_basic.txt => odt_basic.rst} | 0 .../functional/input/{odt_classifier.txt => odt_classifier.rst} | 0 .../test/functional/input/{odt_contents.txt => odt_contents.rst} | 0 .../input/{odt_custom_headfoot.txt => odt_custom_headfoot.rst} | 0 .../functional/input/{odt_footnotes.txt => odt_footnotes.rst} | 0 .../input/{odt_header_footer.txt => odt_header_footer.rst} | 0 .../input/{odt_literal_block.txt => odt_literal_block.rst} | 0 .../input/{odt_nested_class.txt => odt_nested_class.rst} | 0 .../test/functional/input/{odt_no_class.txt => odt_no_class.rst} | 0 docutils/test/functional/input/{odt_raw.txt => odt_raw.rst} | 0 .../test/functional/input/{odt_tables1.txt => odt_tables1.rst} | 0 .../input/{odt_unnested_class.txt => odt_unnested_class.rst} | 0 docutils/test/functional/input/{pep_html.txt => pep_html.rst} | 0 docutils/test/functional/input/{simple.txt => simple.rst} | 0 ...alone_rst_docutils_xml.txt => standalone_rst_docutils_xml.rst} | 0 ...{standalone_rst_html4css1.txt => standalone_rst_html4css1.rst} | 0 .../input/{standalone_rst_html5.txt => standalone_rst_html5.rst} | 0 .../input/{standalone_rst_latex.txt => standalone_rst_latex.rst} | 0 .../{standalone_rst_manpage.txt => standalone_rst_manpage.rst} | 0 ...{standalone_rst_pseudoxml.txt => standalone_rst_pseudoxml.rst} | 0 .../{standalone_rst_s5_html.txt => standalone_rst_s5_html.rst} | 0 .../input/{standalone_rst_xetex.txt => standalone_rst_xetex.rst} | 0 docutils/test/functional/output/{README.txt => README.rst} | 0 .../test_rst/includes/{include14.txt => include14.rst} | 0 .../test_parsers/test_rst/includes/{include9.txt => include9.rst} | 0 .../test_rst/test_directives/{empty.txt => empty.rst} | 0 .../test_rst/test_directives/{include 11.txt => include 11.rst} | 0 .../test_rst/test_directives/{include1.txt => include1.rst} | 0 .../test_rst/test_directives/{include10.txt => include10.rst} | 0 .../test_rst/test_directives/{include12.txt => include12.rst} | 0 .../test_rst/test_directives/{include13.txt => include13.rst} | 0 .../test_rst/test_directives/{include2.txt => include2.rst} | 0 .../test_rst/test_directives/{include3.txt => include3.rst} | 0 .../test_rst/test_directives/{include8.txt => include8.rst} | 0 .../test_directives/{include_literal.txt => include_literal.rst} | 0 .../test_directives/includes/{include14.txt => include14.rst} | 0 .../test_directives/includes/{include15.txt => include15.rst} | 0 .../test_directives/includes/{include16.txt => include16.rst} | 0 .../test_directives/includes/{include4.txt => include4.rst} | 0 .../test_directives/includes/{include5.txt => include5.rst} | 0 .../test_directives/includes/more/{include6.txt => include6.rst} | 0 .../includes/sibling/{include7.txt => include7.rst} | 0 .../test_parsers/test_rst/test_directives/{raw1.txt => raw1.rst} | 0 docutils/tools/dev/{README.txt => README.rst} | 0 docutils/tools/editors/{README.txt => README.rst} | 0 docutils/tools/editors/emacs/{README.txt => README.rst} | 0 docutils/tools/editors/emacs/tests/{README.txt => README.rst} | 0 159 files changed, 0 insertions(+), 0 deletions(-) rename docutils/{BUGS.txt => BUGS.rst} (100%) rename docutils/{COPYING.txt => COPYING.rst} (100%) rename docutils/{FAQ.txt => FAQ.rst} (100%) rename docutils/{HISTORY.txt => HISTORY.rst} (100%) rename docutils/{README.txt => README.rst} (100%) rename docutils/{RELEASE-NOTES.txt => RELEASE-NOTES.rst} (100%) rename docutils/{THANKS.txt => THANKS.rst} (100%) rename docutils/docs/api/{cmdline-tool.txt => cmdline-tool.rst} (100%) rename docutils/docs/api/{publisher.txt => publisher.rst} (100%) rename docutils/docs/api/{runtime-settings.txt => runtime-settings.rst} (100%) rename docutils/docs/dev/{distributing.txt => distributing.rst} (100%) rename docutils/docs/dev/{enthought-plan.txt => enthought-plan.rst} (100%) rename docutils/docs/dev/{enthought-rfp.txt => enthought-rfp.rst} (100%) rename docutils/docs/dev/{hacking.txt => hacking.rst} (100%) rename docutils/docs/dev/{policies.txt => policies.rst} (100%) rename docutils/docs/dev/{pysource.txt => pysource.rst} (100%) rename docutils/docs/dev/{release.txt => release.rst} (100%) rename docutils/docs/dev/{repository.txt => repository.rst} (100%) rename docutils/docs/dev/rst/{alternatives.txt => alternatives.rst} (100%) rename docutils/docs/dev/rst/{problems.txt => problems.rst} (100%) rename docutils/docs/dev/{semantics.txt => semantics.rst} (100%) rename docutils/docs/dev/{testing.txt => testing.rst} (100%) rename docutils/docs/dev/{todo.txt => todo.rst} (100%) rename docutils/docs/dev/{website.txt => website.rst} (100%) rename docutils/docs/howto/{html-stylesheets.txt => html-stylesheets.rst} (100%) rename docutils/docs/howto/{i18n.txt => i18n.rst} (100%) rename docutils/docs/howto/{rst-directives.txt => rst-directives.rst} (100%) rename docutils/docs/howto/{rst-roles.txt => rst-roles.rst} (100%) rename docutils/docs/howto/{security.txt => security.rst} (100%) rename docutils/docs/{index.txt => index.rst} (100%) rename docutils/docs/peps/{pep-0256.txt => pep-0256.rst} (100%) rename docutils/docs/peps/{pep-0257.txt => pep-0257.rst} (100%) rename docutils/docs/peps/{pep-0258.txt => pep-0258.rst} (100%) rename docutils/docs/peps/{pep-0287.txt => pep-0287.rst} (100%) rename docutils/docs/ref/{doctree.txt => doctree.rst} (100%) rename docutils/docs/ref/rst/{definitions.txt => definitions.rst} (100%) rename docutils/docs/ref/rst/{directives.txt => directives.rst} (100%) rename docutils/docs/ref/rst/{introduction.txt => introduction.rst} (100%) rename docutils/docs/ref/rst/{mathematics.txt => mathematics.rst} (100%) rename docutils/docs/ref/rst/{restructuredtext.txt => restructuredtext.rst} (100%) rename docutils/docs/ref/rst/{roles.txt => roles.rst} (100%) rename docutils/docs/ref/{transforms.txt => transforms.rst} (100%) rename docutils/docs/user/{config.txt => config.rst} (100%) rename docutils/docs/user/{emacs.txt => emacs.rst} (100%) rename docutils/docs/user/{html.txt => html.rst} (100%) rename docutils/docs/user/{latex.txt => latex.rst} (100%) rename docutils/docs/user/{links.txt => links.rst} (100%) rename docutils/docs/user/{mailing-lists.txt => mailing-lists.rst} (100%) rename docutils/docs/user/{manpage.txt => manpage.rst} (100%) rename docutils/docs/user/{odt.txt => odt.rst} (100%) rename docutils/docs/user/rst/{cheatsheet.txt => cheatsheet.rst} (100%) rename docutils/docs/user/rst/{demo.txt => demo.rst} (100%) rename docutils/docs/user/rst/{quickstart.txt => quickstart.rst} (100%) rename docutils/docs/user/{slide-shows.txt => slide-shows.rst} (100%) rename docutils/docs/user/{smartquotes.txt => smartquotes.rst} (100%) rename docutils/docs/user/{tools.txt => tools.rst} (100%) rename docutils/docutils/writers/s5_html/themes/{README.txt => README.rst} (100%) rename docutils/test/data/{config_1.txt => config_1.rst} (100%) rename docutils/test/data/{config_2.txt => config_2.rst} (100%) rename docutils/test/data/{config_error_handler.txt => config_error_handler.rst} (100%) rename docutils/test/data/{config_list.txt => config_list.rst} (100%) rename docutils/test/data/{config_list_2.txt => config_list_2.rst} (100%) rename docutils/test/data/{config_old.txt => config_old.rst} (100%) rename docutils/test/data/{csv_data.txt => csv_data.rst} (100%) rename docutils/test/data/{csv_dep.txt => csv_dep.rst} (100%) rename docutils/test/data/{dependencies.txt => dependencies.rst} (100%) rename docutils/test/data/{full-template.txt => full-template.rst} (100%) rename docutils/test/data/{include.txt => include.rst} (100%) rename docutils/test/data/{latin1.txt => latin1.rst} (100%) rename docutils/test/data/{raw.txt => raw.rst} (100%) rename docutils/test/data/{stylesheet.txt => stylesheet.rst} (100%) rename docutils/test/functional/{README.txt => README.rst} (100%) rename docutils/test/functional/expected/{standalone_rst_pseudoxml.txt => standalone_rst_pseudoxml.rst} (100%) rename docutils/test/functional/input/{compact_lists.txt => compact_lists.rst} (100%) rename docutils/test/functional/input/{cyrillic.txt => cyrillic.rst} (100%) rename docutils/test/functional/input/{dangerous.txt => dangerous.rst} (100%) rename docutils/test/functional/input/data/{classes_latex.txt => classes_latex.rst} (100%) rename docutils/test/functional/input/data/{comprehensive-math-test.txt => comprehensive-math-test.rst} (100%) rename docutils/test/functional/input/data/{custom_roles.txt => custom_roles.rst} (100%) rename docutils/test/functional/input/data/{custom_roles_latex.txt => custom_roles_latex.rst} (100%) rename docutils/test/functional/input/data/{embed_images.txt => embed_images.rst} (100%) rename docutils/test/functional/input/data/{errors.txt => errors.rst} (100%) rename docutils/test/functional/input/data/{header_footer.txt => header_footer.rst} (100%) rename docutils/test/functional/input/data/{html5-features.txt => html5-features.rst} (100%) rename docutils/test/functional/input/data/{html5-text-level-tags.txt => html5-text-level-tags.rst} (100%) rename docutils/test/functional/input/data/{hyperlinking.txt => hyperlinking.rst} (100%) rename docutils/test/functional/input/data/{latex-problematic.txt => latex-problematic.rst} (100%) rename docutils/test/functional/input/data/{latex_encoding.txt => latex_encoding.rst} (100%) rename docutils/test/functional/input/data/{list_table.txt => list_table.rst} (100%) rename docutils/test/functional/input/data/{math.txt => math.rst} (100%) rename docutils/test/functional/input/data/{nonalphanumeric.txt => nonalphanumeric.rst} (100%) rename docutils/test/functional/input/data/{option_lists.txt => option_lists.rst} (100%) rename docutils/test/functional/input/data/{section_titles.txt => section_titles.rst} (100%) rename docutils/test/functional/input/data/{standard.txt => standard.rst} (100%) rename docutils/test/functional/input/data/{svg_images.txt => svg_images.rst} (100%) rename docutils/test/functional/input/data/{swf_images.txt => swf_images.rst} (100%) rename docutils/test/functional/input/data/{table_colspan.txt => table_colspan.rst} (100%) rename docutils/test/functional/input/data/{table_complex.txt => table_complex.rst} (100%) rename docutils/test/functional/input/data/{table_rowspan.txt => table_rowspan.rst} (100%) rename docutils/test/functional/input/data/{tables_latex.txt => tables_latex.rst} (100%) rename docutils/test/functional/input/data/{unicode.txt => unicode.rst} (100%) rename docutils/test/functional/input/data/{urls.txt => urls.rst} (100%) rename docutils/test/functional/input/data/{video.txt => video.rst} (100%) rename docutils/test/functional/input/{field_list.txt => field_list.rst} (100%) rename docutils/test/functional/input/{footnotes.txt => footnotes.rst} (100%) rename docutils/test/functional/input/{latex_babel.txt => latex_babel.rst} (100%) rename docutils/test/functional/input/{latex_cornercases.txt => latex_cornercases.rst} (100%) rename docutils/test/functional/input/{latex_docinfo.txt => latex_docinfo.rst} (100%) rename docutils/test/functional/input/{latex_leavevmode.txt => latex_leavevmode.rst} (100%) rename docutils/test/functional/input/{latex_literal_block.txt => latex_literal_block.rst} (100%) rename docutils/test/functional/input/{misc_rst_html4css1.txt => misc_rst_html4css1.rst} (100%) rename docutils/test/functional/input/{misc_rst_html5.txt => misc_rst_html5.rst} (100%) rename docutils/test/functional/input/{odt_basic.txt => odt_basic.rst} (100%) rename docutils/test/functional/input/{odt_classifier.txt => odt_classifier.rst} (100%) rename docutils/test/functional/input/{odt_contents.txt => odt_contents.rst} (100%) rename docutils/test/functional/input/{odt_custom_headfoot.txt => odt_custom_headfoot.rst} (100%) rename docutils/test/functional/input/{odt_footnotes.txt => odt_footnotes.rst} (100%) rename docutils/test/functional/input/{odt_header_footer.txt => odt_header_footer.rst} (100%) rename docutils/test/functional/input/{odt_literal_block.txt => odt_literal_block.rst} (100%) rename docutils/test/functional/input/{odt_nested_class.txt => odt_nested_class.rst} (100%) rename docutils/test/functional/input/{odt_no_class.txt => odt_no_class.rst} (100%) rename docutils/test/functional/input/{odt_raw.txt => odt_raw.rst} (100%) rename docutils/test/functional/input/{odt_tables1.txt => odt_tables1.rst} (100%) rename docutils/test/functional/input/{odt_unnested_class.txt => odt_unnested_class.rst} (100%) rename docutils/test/functional/input/{pep_html.txt => pep_html.rst} (100%) rename docutils/test/functional/input/{simple.txt => simple.rst} (100%) rename docutils/test/functional/input/{standalone_rst_docutils_xml.txt => standalone_rst_docutils_xml.rst} (100%) rename docutils/test/functional/input/{standalone_rst_html4css1.txt => standalone_rst_html4css1.rst} (100%) rename docutils/test/functional/input/{standalone_rst_html5.txt => standalone_rst_html5.rst} (100%) rename docutils/test/functional/input/{standalone_rst_latex.txt => standalone_rst_latex.rst} (100%) rename docutils/test/functional/input/{standalone_rst_manpage.txt => standalone_rst_manpage.rst} (100%) rename docutils/test/functional/input/{standalone_rst_pseudoxml.txt => standalone_rst_pseudoxml.rst} (100%) rename docutils/test/functional/input/{standalone_rst_s5_html.txt => standalone_rst_s5_html.rst} (100%) rename docutils/test/functional/input/{standalone_rst_xetex.txt => standalone_rst_xetex.rst} (100%) rename docutils/test/functional/output/{README.txt => README.rst} (100%) rename docutils/test/test_parsers/test_rst/includes/{include14.txt => include14.rst} (100%) rename docutils/test/test_parsers/test_rst/includes/{include9.txt => include9.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{empty.txt => empty.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include 11.txt => include 11.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include1.txt => include1.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include10.txt => include10.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include12.txt => include12.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include13.txt => include13.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include2.txt => include2.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include3.txt => include3.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include8.txt => include8.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{include_literal.txt => include_literal.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/{include14.txt => include14.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/{include15.txt => include15.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/{include16.txt => include16.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/{include4.txt => include4.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/{include5.txt => include5.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/more/{include6.txt => include6.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/includes/sibling/{include7.txt => include7.rst} (100%) rename docutils/test/test_parsers/test_rst/test_directives/{raw1.txt => raw1.rst} (100%) rename docutils/tools/dev/{README.txt => README.rst} (100%) rename docutils/tools/editors/{README.txt => README.rst} (100%) rename docutils/tools/editors/emacs/{README.txt => README.rst} (100%) rename docutils/tools/editors/emacs/tests/{README.txt => README.rst} (100%) diff --git a/docutils/BUGS.txt b/docutils/BUGS.rst similarity index 100% rename from docutils/BUGS.txt rename to docutils/BUGS.rst diff --git a/docutils/COPYING.txt b/docutils/COPYING.rst similarity index 100% rename from docutils/COPYING.txt rename to docutils/COPYING.rst diff --git a/docutils/FAQ.txt b/docutils/FAQ.rst similarity index 100% rename from docutils/FAQ.txt rename to docutils/FAQ.rst diff --git a/docutils/HISTORY.txt b/docutils/HISTORY.rst similarity index 100% rename from docutils/HISTORY.txt rename to docutils/HISTORY.rst diff --git a/docutils/README.txt b/docutils/README.rst similarity index 100% rename from docutils/README.txt rename to docutils/README.rst diff --git a/docutils/RELEASE-NOTES.txt b/docutils/RELEASE-NOTES.rst similarity index 100% rename from docutils/RELEASE-NOTES.txt rename to docutils/RELEASE-NOTES.rst diff --git a/docutils/THANKS.txt b/docutils/THANKS.rst similarity index 100% rename from docutils/THANKS.txt rename to docutils/THANKS.rst diff --git a/docutils/docs/api/cmdline-tool.txt b/docutils/docs/api/cmdline-tool.rst similarity index 100% rename from docutils/docs/api/cmdline-tool.txt rename to docutils/docs/api/cmdline-tool.rst diff --git a/docutils/docs/api/publisher.txt b/docutils/docs/api/publisher.rst similarity index 100% rename from docutils/docs/api/publisher.txt rename to docutils/docs/api/publisher.rst diff --git a/docutils/docs/api/runtime-settings.txt b/docutils/docs/api/runtime-settings.rst similarity index 100% rename from docutils/docs/api/runtime-settings.txt rename to docutils/docs/api/runtime-settings.rst diff --git a/docutils/docs/dev/distributing.txt b/docutils/docs/dev/distributing.rst similarity index 100% rename from docutils/docs/dev/distributing.txt rename to docutils/docs/dev/distributing.rst diff --git a/docutils/docs/dev/enthought-plan.txt b/docutils/docs/dev/enthought-plan.rst similarity index 100% rename from docutils/docs/dev/enthought-plan.txt rename to docutils/docs/dev/enthought-plan.rst diff --git a/docutils/docs/dev/enthought-rfp.txt b/docutils/docs/dev/enthought-rfp.rst similarity index 100% rename from docutils/docs/dev/enthought-rfp.txt rename to docutils/docs/dev/enthought-rfp.rst diff --git a/docutils/docs/dev/hacking.txt b/docutils/docs/dev/hacking.rst similarity index 100% rename from docutils/docs/dev/hacking.txt rename to docutils/docs/dev/hacking.rst diff --git a/docutils/docs/dev/policies.txt b/docutils/docs/dev/policies.rst similarity index 100% rename from docutils/docs/dev/policies.txt rename to docutils/docs/dev/policies.rst diff --git a/docutils/docs/dev/pysource.txt b/docutils/docs/dev/pysource.rst similarity index 100% rename from docutils/docs/dev/pysource.txt rename to docutils/docs/dev/pysource.rst diff --git a/docutils/docs/dev/release.txt b/docutils/docs/dev/release.rst similarity index 100% rename from docutils/docs/dev/release.txt rename to docutils/docs/dev/release.rst diff --git a/docutils/docs/dev/repository.txt b/docutils/docs/dev/repository.rst similarity index 100% rename from docutils/docs/dev/repository.txt rename to docutils/docs/dev/repository.rst diff --git a/docutils/docs/dev/rst/alternatives.txt b/docutils/docs/dev/rst/alternatives.rst similarity index 100% rename from docutils/docs/dev/rst/alternatives.txt rename to docutils/docs/dev/rst/alternatives.rst diff --git a/docutils/docs/dev/rst/problems.txt b/docutils/docs/dev/rst/problems.rst similarity index 100% rename from docutils/docs/dev/rst/problems.txt rename to docutils/docs/dev/rst/problems.rst diff --git a/docutils/docs/dev/semantics.txt b/docutils/docs/dev/semantics.rst similarity index 100% rename from docutils/docs/dev/semantics.txt rename to docutils/docs/dev/semantics.rst diff --git a/docutils/docs/dev/testing.txt b/docutils/docs/dev/testing.rst similarity index 100% rename from docutils/docs/dev/testing.txt rename to docutils/docs/dev/testing.rst diff --git a/docutils/docs/dev/todo.txt b/docutils/docs/dev/todo.rst similarity index 100% rename from docutils/docs/dev/todo.txt rename to docutils/docs/dev/todo.rst diff --git a/docutils/docs/dev/website.txt b/docutils/docs/dev/website.rst similarity index 100% rename from docutils/docs/dev/website.txt rename to docutils/docs/dev/website.rst diff --git a/docutils/docs/howto/html-stylesheets.txt b/docutils/docs/howto/html-stylesheets.rst similarity index 100% rename from docutils/docs/howto/html-stylesheets.txt rename to docutils/docs/howto/html-stylesheets.rst diff --git a/docutils/docs/howto/i18n.txt b/docutils/docs/howto/i18n.rst similarity index 100% rename from docutils/docs/howto/i18n.txt rename to docutils/docs/howto/i18n.rst diff --git a/docutils/docs/howto/rst-directives.txt b/docutils/docs/howto/rst-directives.rst similarity index 100% rename from docutils/docs/howto/rst-directives.txt rename to docutils/docs/howto/rst-directives.rst diff --git a/docutils/docs/howto/rst-roles.txt b/docutils/docs/howto/rst-roles.rst similarity index 100% rename from docutils/docs/howto/rst-roles.txt rename to docutils/docs/howto/rst-roles.rst diff --git a/docutils/docs/howto/security.txt b/docutils/docs/howto/security.rst similarity index 100% rename from docutils/docs/howto/security.txt rename to docutils/docs/howto/security.rst diff --git a/docutils/docs/index.txt b/docutils/docs/index.rst similarity index 100% rename from docutils/docs/index.txt rename to docutils/docs/index.rst diff --git a/docutils/docs/peps/pep-0256.txt b/docutils/docs/peps/pep-0256.rst similarity index 100% rename from docutils/docs/peps/pep-0256.txt rename to docutils/docs/peps/pep-0256.rst diff --git a/docutils/docs/peps/pep-0257.txt b/docutils/docs/peps/pep-0257.rst similarity index 100% rename from docutils/docs/peps/pep-0257.txt rename to docutils/docs/peps/pep-0257.rst diff --git a/docutils/docs/peps/pep-0258.txt b/docutils/docs/peps/pep-0258.rst similarity index 100% rename from docutils/docs/peps/pep-0258.txt rename to docutils/docs/peps/pep-0258.rst diff --git a/docutils/docs/peps/pep-0287.txt b/docutils/docs/peps/pep-0287.rst similarity index 100% rename from docutils/docs/peps/pep-0287.txt rename to docutils/docs/peps/pep-0287.rst diff --git a/docutils/docs/ref/doctree.txt b/docutils/docs/ref/doctree.rst similarity index 100% rename from docutils/docs/ref/doctree.txt rename to docutils/docs/ref/doctree.rst diff --git a/docutils/docs/ref/rst/definitions.txt b/docutils/docs/ref/rst/definitions.rst similarity index 100% rename from docutils/docs/ref/rst/definitions.txt rename to docutils/docs/ref/rst/definitions.rst diff --git a/docutils/docs/ref/rst/directives.txt b/docutils/docs/ref/rst/directives.rst similarity index 100% rename from docutils/docs/ref/rst/directives.txt rename to docutils/docs/ref/rst/directives.rst diff --git a/docutils/docs/ref/rst/introduction.txt b/docutils/docs/ref/rst/introduction.rst similarity index 100% rename from docutils/docs/ref/rst/introduction.txt rename to docutils/docs/ref/rst/introduction.rst diff --git a/docutils/docs/ref/rst/mathematics.txt b/docutils/docs/ref/rst/mathematics.rst similarity index 100% rename from docutils/docs/ref/rst/mathematics.txt rename to docutils/docs/ref/rst/mathematics.rst diff --git a/docutils/docs/ref/rst/restructuredtext.txt b/docutils/docs/ref/rst/restructuredtext.rst similarity index 100% rename from docutils/docs/ref/rst/restructuredtext.txt rename to docutils/docs/ref/rst/restructuredtext.rst diff --git a/docutils/docs/ref/rst/roles.txt b/docutils/docs/ref/rst/roles.rst similarity index 100% rename from docutils/docs/ref/rst/roles.txt rename to docutils/docs/ref/rst/roles.rst diff --git a/docutils/docs/ref/transforms.txt b/docutils/docs/ref/transforms.rst similarity index 100% rename from docutils/docs/ref/transforms.txt rename to docutils/docs/ref/transforms.rst diff --git a/docutils/docs/user/config.txt b/docutils/docs/user/config.rst similarity index 100% rename from docutils/docs/user/config.txt rename to docutils/docs/user/config.rst diff --git a/docutils/docs/user/emacs.txt b/docutils/docs/user/emacs.rst similarity index 100% rename from docutils/docs/user/emacs.txt rename to docutils/docs/user/emacs.rst diff --git a/docutils/docs/user/html.txt b/docutils/docs/user/html.rst similarity index 100% rename from docutils/docs/user/html.txt rename to docutils/docs/user/html.rst diff --git a/docutils/docs/user/latex.txt b/docutils/docs/user/latex.rst similarity index 100% rename from docutils/docs/user/latex.txt rename to docutils/docs/user/latex.rst diff --git a/docutils/docs/user/links.txt b/docutils/docs/user/links.rst similarity index 100% rename from docutils/docs/user/links.txt rename to docutils/docs/user/links.rst diff --git a/docutils/docs/user/mailing-lists.txt b/docutils/docs/user/mailing-lists.rst similarity index 100% rename from docutils/docs/user/mailing-lists.txt rename to docutils/docs/user/mailing-lists.rst diff --git a/docutils/docs/user/manpage.txt b/docutils/docs/user/manpage.rst similarity index 100% rename from docutils/docs/user/manpage.txt rename to docutils/docs/user/manpage.rst diff --git a/docutils/docs/user/odt.txt b/docutils/docs/user/odt.rst similarity index 100% rename from docutils/docs/user/odt.txt rename to docutils/docs/user/odt.rst diff --git a/docutils/docs/user/rst/cheatsheet.txt b/docutils/docs/user/rst/cheatsheet.rst similarity index 100% rename from docutils/docs/user/rst/cheatsheet.txt rename to docutils/docs/user/rst/cheatsheet.rst diff --git a/docutils/docs/user/rst/demo.txt b/docutils/docs/user/rst/demo.rst similarity index 100% rename from docutils/docs/user/rst/demo.txt rename to docutils/docs/user/rst/demo.rst diff --git a/docutils/docs/user/rst/quickstart.txt b/docutils/docs/user/rst/quickstart.rst similarity index 100% rename from docutils/docs/user/rst/quickstart.txt rename to docutils/docs/user/rst/quickstart.rst diff --git a/docutils/docs/user/slide-shows.txt b/docutils/docs/user/slide-shows.rst similarity index 100% rename from docutils/docs/user/slide-shows.txt rename to docutils/docs/user/slide-shows.rst diff --git a/docutils/docs/user/smartquotes.txt b/docutils/docs/user/smartquotes.rst similarity index 100% rename from docutils/docs/user/smartquotes.txt rename to docutils/docs/user/smartquotes.rst diff --git a/docutils/docs/user/tools.txt b/docutils/docs/user/tools.rst similarity index 100% rename from docutils/docs/user/tools.txt rename to docutils/docs/user/tools.rst diff --git a/docutils/docutils/writers/s5_html/themes/README.txt b/docutils/docutils/writers/s5_html/themes/README.rst similarity index 100% rename from docutils/docutils/writers/s5_html/themes/README.txt rename to docutils/docutils/writers/s5_html/themes/README.rst diff --git a/docutils/test/data/config_1.txt b/docutils/test/data/config_1.rst similarity index 100% rename from docutils/test/data/config_1.txt rename to docutils/test/data/config_1.rst diff --git a/docutils/test/data/config_2.txt b/docutils/test/data/config_2.rst similarity index 100% rename from docutils/test/data/config_2.txt rename to docutils/test/data/config_2.rst diff --git a/docutils/test/data/config_error_handler.txt b/docutils/test/data/config_error_handler.rst similarity index 100% rename from docutils/test/data/config_error_handler.txt rename to docutils/test/data/config_error_handler.rst diff --git a/docutils/test/data/config_list.txt b/docutils/test/data/config_list.rst similarity index 100% rename from docutils/test/data/config_list.txt rename to docutils/test/data/config_list.rst diff --git a/docutils/test/data/config_list_2.txt b/docutils/test/data/config_list_2.rst similarity index 100% rename from docutils/test/data/config_list_2.txt rename to docutils/test/data/config_list_2.rst diff --git a/docutils/test/data/config_old.txt b/docutils/test/data/config_old.rst similarity index 100% rename from docutils/test/data/config_old.txt rename to docutils/test/data/config_old.rst diff --git a/docutils/test/data/csv_data.txt b/docutils/test/data/csv_data.rst similarity index 100% rename from docutils/test/data/csv_data.txt rename to docutils/test/data/csv_data.rst diff --git a/docutils/test/data/csv_dep.txt b/docutils/test/data/csv_dep.rst similarity index 100% rename from docutils/test/data/csv_dep.txt rename to docutils/test/data/csv_dep.rst diff --git a/docutils/test/data/dependencies.txt b/docutils/test/data/dependencies.rst similarity index 100% rename from docutils/test/data/dependencies.txt rename to docutils/test/data/dependencies.rst diff --git a/docutils/test/data/full-template.txt b/docutils/test/data/full-template.rst similarity index 100% rename from docutils/test/data/full-template.txt rename to docutils/test/data/full-template.rst diff --git a/docutils/test/data/include.txt b/docutils/test/data/include.rst similarity index 100% rename from docutils/test/data/include.txt rename to docutils/test/data/include.rst diff --git a/docutils/test/data/latin1.txt b/docutils/test/data/latin1.rst similarity index 100% rename from docutils/test/data/latin1.txt rename to docutils/test/data/latin1.rst diff --git a/docutils/test/data/raw.txt b/docutils/test/data/raw.rst similarity index 100% rename from docutils/test/data/raw.txt rename to docutils/test/data/raw.rst diff --git a/docutils/test/data/stylesheet.txt b/docutils/test/data/stylesheet.rst similarity index 100% rename from docutils/test/data/stylesheet.txt rename to docutils/test/data/stylesheet.rst diff --git a/docutils/test/functional/README.txt b/docutils/test/functional/README.rst similarity index 100% rename from docutils/test/functional/README.txt rename to docutils/test/functional/README.rst diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.rst similarity index 100% rename from docutils/test/functional/expected/standalone_rst_pseudoxml.txt rename to docutils/test/functional/expected/standalone_rst_pseudoxml.rst diff --git a/docutils/test/functional/input/compact_lists.txt b/docutils/test/functional/input/compact_lists.rst similarity index 100% rename from docutils/test/functional/input/compact_lists.txt rename to docutils/test/functional/input/compact_lists.rst diff --git a/docutils/test/functional/input/cyrillic.txt b/docutils/test/functional/input/cyrillic.rst similarity index 100% rename from docutils/test/functional/input/cyrillic.txt rename to docutils/test/functional/input/cyrillic.rst diff --git a/docutils/test/functional/input/dangerous.txt b/docutils/test/functional/input/dangerous.rst similarity index 100% rename from docutils/test/functional/input/dangerous.txt rename to docutils/test/functional/input/dangerous.rst diff --git a/docutils/test/functional/input/data/classes_latex.txt b/docutils/test/functional/input/data/classes_latex.rst similarity index 100% rename from docutils/test/functional/input/data/classes_latex.txt rename to docutils/test/functional/input/data/classes_latex.rst diff --git a/docutils/test/functional/input/data/comprehensive-math-test.txt b/docutils/test/functional/input/data/comprehensive-math-test.rst similarity index 100% rename from docutils/test/functional/input/data/comprehensive-math-test.txt rename to docutils/test/functional/input/data/comprehensive-math-test.rst diff --git a/docutils/test/functional/input/data/custom_roles.txt b/docutils/test/functional/input/data/custom_roles.rst similarity index 100% rename from docutils/test/functional/input/data/custom_roles.txt rename to docutils/test/functional/input/data/custom_roles.rst diff --git a/docutils/test/functional/input/data/custom_roles_latex.txt b/docutils/test/functional/input/data/custom_roles_latex.rst similarity index 100% rename from docutils/test/functional/input/data/custom_roles_latex.txt rename to docutils/test/functional/input/data/custom_roles_latex.rst diff --git a/docutils/test/functional/input/data/embed_images.txt b/docutils/test/functional/input/data/embed_images.rst similarity index 100% rename from docutils/test/functional/input/data/embed_images.txt rename to docutils/test/functional/input/data/embed_images.rst diff --git a/docutils/test/functional/input/data/errors.txt b/docutils/test/functional/input/data/errors.rst similarity index 100% rename from docutils/test/functional/input/data/errors.txt rename to docutils/test/functional/input/data/errors.rst diff --git a/docutils/test/functional/input/data/header_footer.txt b/docutils/test/functional/input/data/header_footer.rst similarity index 100% rename from docutils/test/functional/input/data/header_footer.txt rename to docutils/test/functional/input/data/header_footer.rst diff --git a/docutils/test/functional/input/data/html5-features.txt b/docutils/test/functional/input/data/html5-features.rst similarity index 100% rename from docutils/test/functional/input/data/html5-features.txt rename to docutils/test/functional/input/data/html5-features.rst diff --git a/docutils/test/functional/input/data/html5-text-level-tags.txt b/docutils/test/functional/input/data/html5-text-level-tags.rst similarity index 100% rename from docutils/test/functional/input/data/html5-text-level-tags.txt rename to docutils/test/functional/input/data/html5-text-level-tags.rst diff --git a/docutils/test/functional/input/data/hyperlinking.txt b/docutils/test/functional/input/data/hyperlinking.rst similarity index 100% rename from docutils/test/functional/input/data/hyperlinking.txt rename to docutils/test/functional/input/data/hyperlinking.rst diff --git a/docutils/test/functional/input/data/latex-problematic.txt b/docutils/test/functional/input/data/latex-problematic.rst similarity index 100% rename from docutils/test/functional/input/data/latex-problematic.txt rename to docutils/test/functional/input/data/latex-problematic.rst diff --git a/docutils/test/functional/input/data/latex_encoding.txt b/docutils/test/functional/input/data/latex_encoding.rst similarity index 100% rename from docutils/test/functional/input/data/latex_encoding.txt rename to docutils/test/functional/input/data/latex_encoding.rst diff --git a/docutils/test/functional/input/data/list_table.txt b/docutils/test/functional/input/data/list_table.rst similarity index 100% rename from docutils/test/functional/input/data/list_table.txt rename to docutils/test/functional/input/data/list_table.rst diff --git a/docutils/test/functional/input/data/math.txt b/docutils/test/functional/input/data/math.rst similarity index 100% rename from docutils/test/functional/input/data/math.txt rename to docutils/test/functional/input/data/math.rst diff --git a/docutils/test/functional/input/data/nonalphanumeric.txt b/docutils/test/functional/input/data/nonalphanumeric.rst similarity index 100% rename from docutils/test/functional/input/data/nonalphanumeric.txt rename to docutils/test/functional/input/data/nonalphanumeric.rst diff --git a/docutils/test/functional/input/data/option_lists.txt b/docutils/test/functional/input/data/option_lists.rst similarity index 100% rename from docutils/test/functional/input/data/option_lists.txt rename to docutils/test/functional/input/data/option_lists.rst diff --git a/docutils/test/functional/input/data/section_titles.txt b/docutils/test/functional/input/data/section_titles.rst similarity index 100% rename from docutils/test/functional/input/data/section_titles.txt rename to docutils/test/functional/input/data/section_titles.rst diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.rst similarity index 100% rename from docutils/test/functional/input/data/standard.txt rename to docutils/test/functional/input/data/standard.rst diff --git a/docutils/test/functional/input/data/svg_images.txt b/docutils/test/functional/input/data/svg_images.rst similarity index 100% rename from docutils/test/functional/input/data/svg_images.txt rename to docutils/test/functional/input/data/svg_images.rst diff --git a/docutils/test/functional/input/data/swf_images.txt b/docutils/test/functional/input/data/swf_images.rst similarity index 100% rename from docutils/test/functional/input/data/swf_images.txt rename to docutils/test/functional/input/data/swf_images.rst diff --git a/docutils/test/functional/input/data/table_colspan.txt b/docutils/test/functional/input/data/table_colspan.rst similarity index 100% rename from docutils/test/functional/input/data/table_colspan.txt rename to docutils/test/functional/input/data/table_colspan.rst diff --git a/docutils/test/functional/input/data/table_complex.txt b/docutils/test/functional/input/data/table_complex.rst similarity index 100% rename from docutils/test/functional/input/data/table_complex.txt rename to docutils/test/functional/input/data/table_complex.rst diff --git a/docutils/test/functional/input/data/table_rowspan.txt b/docutils/test/functional/input/data/table_rowspan.rst similarity index 100% rename from docutils/test/functional/input/data/table_rowspan.txt rename to docutils/test/functional/input/data/table_rowspan.rst diff --git a/docutils/test/functional/input/data/tables_latex.txt b/docutils/test/functional/input/data/tables_latex.rst similarity index 100% rename from docutils/test/functional/input/data/tables_latex.txt rename to docutils/test/functional/input/data/tables_latex.rst diff --git a/docutils/test/functional/input/data/unicode.txt b/docutils/test/functional/input/data/unicode.rst similarity index 100% rename from docutils/test/functional/input/data/unicode.txt rename to docutils/test/functional/input/data/unicode.rst diff --git a/docutils/test/functional/input/data/urls.txt b/docutils/test/functional/input/data/urls.rst similarity index 100% rename from docutils/test/functional/input/data/urls.txt rename to docutils/test/functional/input/data/urls.rst diff --git a/docutils/test/functional/input/data/video.txt b/docutils/test/functional/input/data/video.rst similarity index 100% rename from docutils/test/functional/input/data/video.txt rename to docutils/test/functional/input/data/video.rst diff --git a/docutils/test/functional/input/field_list.txt b/docutils/test/functional/input/field_list.rst similarity index 100% rename from docutils/test/functional/input/field_list.txt rename to docutils/test/functional/input/field_list.rst diff --git a/docutils/test/functional/input/footnotes.txt b/docutils/test/functional/input/footnotes.rst similarity index 100% rename from docutils/test/functional/input/footnotes.txt rename to docutils/test/functional/input/footnotes.rst diff --git a/docutils/test/functional/input/latex_babel.txt b/docutils/test/functional/input/latex_babel.rst similarity index 100% rename from docutils/test/functional/input/latex_babel.txt rename to docutils/test/functional/input/latex_babel.rst diff --git a/docutils/test/functional/input/latex_cornercases.txt b/docutils/test/functional/input/latex_cornercases.rst similarity index 100% rename from docutils/test/functional/input/latex_cornercases.txt rename to docutils/test/functional/input/latex_cornercases.rst diff --git a/docutils/test/functional/input/latex_docinfo.txt b/docutils/test/functional/input/latex_docinfo.rst similarity index 100% rename from docutils/test/functional/input/latex_docinfo.txt rename to docutils/test/functional/input/latex_docinfo.rst diff --git a/docutils/test/functional/input/latex_leavevmode.txt b/docutils/test/functional/input/latex_leavevmode.rst similarity index 100% rename from docutils/test/functional/input/latex_leavevmode.txt rename to docutils/test/functional/input/latex_leavevmode.rst diff --git a/docutils/test/functional/input/latex_literal_block.txt b/docutils/test/functional/input/latex_literal_block.rst similarity index 100% rename from docutils/test/functional/input/latex_literal_block.txt rename to docutils/test/functional/input/latex_literal_block.rst diff --git a/docutils/test/functional/input/misc_rst_html4css1.txt b/docutils/test/functional/input/misc_rst_html4css1.rst similarity index 100% rename from docutils/test/functional/input/misc_rst_html4css1.txt rename to docutils/test/functional/input/misc_rst_html4css1.rst diff --git a/docutils/test/functional/input/misc_rst_html5.txt b/docutils/test/functional/input/misc_rst_html5.rst similarity index 100% rename from docutils/test/functional/input/misc_rst_html5.txt rename to docutils/test/functional/input/misc_rst_html5.rst diff --git a/docutils/test/functional/input/odt_basic.txt b/docutils/test/functional/input/odt_basic.rst similarity index 100% rename from docutils/test/functional/input/odt_basic.txt rename to docutils/test/functional/input/odt_basic.rst diff --git a/docutils/test/functional/input/odt_classifier.txt b/docutils/test/functional/input/odt_classifier.rst similarity index 100% rename from docutils/test/functional/input/odt_classifier.txt rename to docutils/test/functional/input/odt_classifier.rst diff --git a/docutils/test/functional/input/odt_contents.txt b/docutils/test/functional/input/odt_contents.rst similarity index 100% rename from docutils/test/functional/input/odt_contents.txt rename to docutils/test/functional/input/odt_contents.rst diff --git a/docutils/test/functional/input/odt_custom_headfoot.txt b/docutils/test/functional/input/odt_custom_headfoot.rst similarity index 100% rename from docutils/test/functional/input/odt_custom_headfoot.txt rename to docutils/test/functional/input/odt_custom_headfoot.rst diff --git a/docutils/test/functional/input/odt_footnotes.txt b/docutils/test/functional/input/odt_footnotes.rst similarity index 100% rename from docutils/test/functional/input/odt_footnotes.txt rename to docutils/test/functional/input/odt_footnotes.rst diff --git a/docutils/test/functional/input/odt_header_footer.txt b/docutils/test/functional/input/odt_header_footer.rst similarity index 100% rename from docutils/test/functional/input/odt_header_footer.txt rename to docutils/test/functional/input/odt_header_footer.rst diff --git a/docutils/test/functional/input/odt_literal_block.txt b/docutils/test/functional/input/odt_literal_block.rst similarity index 100% rename from docutils/test/functional/input/odt_literal_block.txt rename to docutils/test/functional/input/odt_literal_block.rst diff --git a/docutils/test/functional/input/odt_nested_class.txt b/docutils/test/functional/input/odt_nested_class.rst similarity index 100% rename from docutils/test/functional/input/odt_nested_class.txt rename to docutils/test/functional/input/odt_nested_class.rst diff --git a/docutils/test/functional/input/odt_no_class.txt b/docutils/test/functional/input/odt_no_class.rst similarity index 100% rename from docutils/test/functional/input/odt_no_class.txt rename to docutils/test/functional/input/odt_no_class.rst diff --git a/docutils/test/functional/input/odt_raw.txt b/docutils/test/functional/input/odt_raw.rst similarity index 100% rename from docutils/test/functional/input/odt_raw.txt rename to docutils/test/functional/input/odt_raw.rst diff --git a/docutils/test/functional/input/odt_tables1.txt b/docutils/test/functional/input/odt_tables1.rst similarity index 100% rename from docutils/test/functional/input/odt_tables1.txt rename to docutils/test/functional/input/odt_tables1.rst diff --git a/docutils/test/functional/input/odt_unnested_class.txt b/docutils/test/functional/input/odt_unnested_class.rst similarity index 100% rename from docutils/test/functional/input/odt_unnested_class.txt rename to docutils/test/functional/input/odt_unnested_class.rst diff --git a/docutils/test/functional/input/pep_html.txt b/docutils/test/functional/input/pep_html.rst similarity index 100% rename from docutils/test/functional/input/pep_html.txt rename to docutils/test/functional/input/pep_html.rst diff --git a/docutils/test/functional/input/simple.txt b/docutils/test/functional/input/simple.rst similarity index 100% rename from docutils/test/functional/input/simple.txt rename to docutils/test/functional/input/simple.rst diff --git a/docutils/test/functional/input/standalone_rst_docutils_xml.txt b/docutils/test/functional/input/standalone_rst_docutils_xml.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_docutils_xml.txt rename to docutils/test/functional/input/standalone_rst_docutils_xml.rst diff --git a/docutils/test/functional/input/standalone_rst_html4css1.txt b/docutils/test/functional/input/standalone_rst_html4css1.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_html4css1.txt rename to docutils/test/functional/input/standalone_rst_html4css1.rst diff --git a/docutils/test/functional/input/standalone_rst_html5.txt b/docutils/test/functional/input/standalone_rst_html5.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_html5.txt rename to docutils/test/functional/input/standalone_rst_html5.rst diff --git a/docutils/test/functional/input/standalone_rst_latex.txt b/docutils/test/functional/input/standalone_rst_latex.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_latex.txt rename to docutils/test/functional/input/standalone_rst_latex.rst diff --git a/docutils/test/functional/input/standalone_rst_manpage.txt b/docutils/test/functional/input/standalone_rst_manpage.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_manpage.txt rename to docutils/test/functional/input/standalone_rst_manpage.rst diff --git a/docutils/test/functional/input/standalone_rst_pseudoxml.txt b/docutils/test/functional/input/standalone_rst_pseudoxml.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_pseudoxml.txt rename to docutils/test/functional/input/standalone_rst_pseudoxml.rst diff --git a/docutils/test/functional/input/standalone_rst_s5_html.txt b/docutils/test/functional/input/standalone_rst_s5_html.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_s5_html.txt rename to docutils/test/functional/input/standalone_rst_s5_html.rst diff --git a/docutils/test/functional/input/standalone_rst_xetex.txt b/docutils/test/functional/input/standalone_rst_xetex.rst similarity index 100% rename from docutils/test/functional/input/standalone_rst_xetex.txt rename to docutils/test/functional/input/standalone_rst_xetex.rst diff --git a/docutils/test/functional/output/README.txt b/docutils/test/functional/output/README.rst similarity index 100% rename from docutils/test/functional/output/README.txt rename to docutils/test/functional/output/README.rst diff --git a/docutils/test/test_parsers/test_rst/includes/include14.txt b/docutils/test/test_parsers/test_rst/includes/include14.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/includes/include14.txt rename to docutils/test/test_parsers/test_rst/includes/include14.rst diff --git a/docutils/test/test_parsers/test_rst/includes/include9.txt b/docutils/test/test_parsers/test_rst/includes/include9.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/includes/include9.txt rename to docutils/test/test_parsers/test_rst/includes/include9.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/empty.txt b/docutils/test/test_parsers/test_rst/test_directives/empty.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/empty.txt rename to docutils/test/test_parsers/test_rst/test_directives/empty.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include 11.txt b/docutils/test/test_parsers/test_rst/test_directives/include 11.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include 11.txt rename to docutils/test/test_parsers/test_rst/test_directives/include 11.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include1.txt b/docutils/test/test_parsers/test_rst/test_directives/include1.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include1.txt rename to docutils/test/test_parsers/test_rst/test_directives/include1.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include10.txt b/docutils/test/test_parsers/test_rst/test_directives/include10.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include10.txt rename to docutils/test/test_parsers/test_rst/test_directives/include10.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include12.txt b/docutils/test/test_parsers/test_rst/test_directives/include12.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include12.txt rename to docutils/test/test_parsers/test_rst/test_directives/include12.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include13.txt b/docutils/test/test_parsers/test_rst/test_directives/include13.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include13.txt rename to docutils/test/test_parsers/test_rst/test_directives/include13.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include2.txt b/docutils/test/test_parsers/test_rst/test_directives/include2.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include2.txt rename to docutils/test/test_parsers/test_rst/test_directives/include2.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include3.txt b/docutils/test/test_parsers/test_rst/test_directives/include3.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include3.txt rename to docutils/test/test_parsers/test_rst/test_directives/include3.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include8.txt b/docutils/test/test_parsers/test_rst/test_directives/include8.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include8.txt rename to docutils/test/test_parsers/test_rst/test_directives/include8.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include_literal.txt b/docutils/test/test_parsers/test_rst/test_directives/include_literal.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/include_literal.txt rename to docutils/test/test_parsers/test_rst/test_directives/include_literal.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include14.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/include14.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include15.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/include15.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include16.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/include16.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include4.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/include4.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include5.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/include5.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.txt b/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.txt rename to docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/raw1.txt b/docutils/test/test_parsers/test_rst/test_directives/raw1.rst similarity index 100% rename from docutils/test/test_parsers/test_rst/test_directives/raw1.txt rename to docutils/test/test_parsers/test_rst/test_directives/raw1.rst diff --git a/docutils/tools/dev/README.txt b/docutils/tools/dev/README.rst similarity index 100% rename from docutils/tools/dev/README.txt rename to docutils/tools/dev/README.rst diff --git a/docutils/tools/editors/README.txt b/docutils/tools/editors/README.rst similarity index 100% rename from docutils/tools/editors/README.txt rename to docutils/tools/editors/README.rst diff --git a/docutils/tools/editors/emacs/README.txt b/docutils/tools/editors/emacs/README.rst similarity index 100% rename from docutils/tools/editors/emacs/README.txt rename to docutils/tools/editors/emacs/README.rst diff --git a/docutils/tools/editors/emacs/tests/README.txt b/docutils/tools/editors/emacs/tests/README.rst similarity index 100% rename from docutils/tools/editors/emacs/tests/README.txt rename to docutils/tools/editors/emacs/tests/README.rst From 34c39202f2d9866660a09abdbc4fe37ac98da928 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Wed, 5 Jan 2022 16:46:00 +0000 Subject: [PATCH 2/2] Update references to .txt files --- docutils/BUGS.rst | 2 +- docutils/FAQ.rst | 14 +- docutils/MANIFEST.in | 4 +- docutils/README.rst | 34 ++-- docutils/RELEASE-NOTES.rst | 2 +- docutils/docs/dev/distributing.rst | 10 +- docutils/docs/dev/enthought-plan.rst | 4 +- docutils/docs/dev/enthought-rfp.rst | 2 +- docutils/docs/dev/hacking.rst | 18 +- docutils/docs/dev/policies.rst | 8 +- docutils/docs/dev/release.rst | 10 +- docutils/docs/dev/repository.rst | 1 + docutils/docs/dev/rst/alternatives.rst | 2 +- docutils/docs/dev/testing.rst | 4 +- docutils/docs/dev/todo.rst | 72 ++++---- docutils/docs/dev/website.rst | 12 +- docutils/docs/howto/html-stylesheets.rst | 2 +- docutils/docs/index.rst | 36 ++-- docutils/docs/ref/doctree.rst | 4 +- docutils/docs/ref/rst/directives.rst | 4 +- docutils/docs/ref/rst/restructuredtext.rst | 10 +- docutils/docs/user/Makefile.docutils-update | 8 +- docutils/docs/user/config.rst | 6 +- docutils/docs/user/latex.rst | 10 +- docutils/docs/user/odt.rst | 16 +- docutils/docs/user/rst/cheatsheet.rst | 4 +- docutils/docs/user/slide-shows.rst | 10 +- docutils/docs/user/tools.rst | 28 +-- docutils/docutils/__init__.py | 4 +- docutils/docutils/transforms/references.py | 2 +- docutils/docutils/writers/latex2e/__init__.py | 2 +- docutils/docutils/writers/odf_odt/__init__.py | 2 +- docutils/setup.cfg | 2 +- docutils/setup.py | 2 +- docutils/test/data/csv_dep.rst | 2 +- docutils/test/data/dependencies.rst | 8 +- .../functional/expected/compact_lists.html | 2 +- .../test/functional/expected/dangerous.html | 14 +- .../functional/expected/field_name_limit.html | 2 +- .../functional/expected/latex_cornercases.tex | 2 +- .../test/functional/expected/latex_memoir.tex | 16 +- .../expected/standalone_rst_docutils_xml.xml | 42 ++--- .../expected/standalone_rst_html4css1.html | 12 +- .../expected/standalone_rst_html5.html | 12 +- .../expected/standalone_rst_latex.tex | 16 +- .../expected/standalone_rst_pseudoxml.rst | 42 ++--- .../expected/standalone_rst_xetex.tex | 16 +- .../functional/input/data/classes_latex.rst | 2 +- .../input/data/latex-problematic.rst | 2 +- .../test/functional/input/data/standard.rst | 4 +- .../functional/input/data/tables_latex.rst | 2 +- docutils/test/functional/input/footnotes.rst | 2 +- .../functional/input/latex_cornercases.rst | 16 +- .../functional/input/misc_rst_html4css1.rst | 2 +- .../test/functional/input/misc_rst_html5.rst | 6 +- .../input/standalone_rst_docutils_xml.rst | 14 +- .../input/standalone_rst_html4css1.rst | 20 +-- .../functional/input/standalone_rst_html5.rst | 20 +-- .../functional/input/standalone_rst_latex.rst | 20 +-- .../input/standalone_rst_pseudoxml.rst | 14 +- .../functional/input/standalone_rst_xetex.rst | 4 +- .../test/functional/tests/compact_lists.py | 2 +- docutils/test/functional/tests/dangerous.py | 2 +- .../test/functional/tests/field_name_limit.py | 2 +- .../test/functional/tests/footnotes_html5.py | 2 +- docutils/test/functional/tests/latex_babel.py | 2 +- .../functional/tests/latex_cornercases.py | 2 +- .../test/functional/tests/latex_cyrillic.py | 2 +- .../test/functional/tests/latex_docinfo.py | 2 +- .../test/functional/tests/latex_leavevmode.py | 2 +- .../functional/tests/latex_literal_block.py | 2 +- .../tests/latex_literal_block_fancyvrb.py | 2 +- .../tests/latex_literal_block_listings.py | 2 +- .../tests/latex_literal_block_verbatim.py | 2 +- .../tests/latex_literal_block_verbatimtab.py | 2 +- .../test/functional/tests/latex_memoir.py | 2 +- .../test/functional/tests/math_output_html.py | 2 +- .../functional/tests/math_output_latex.py | 2 +- .../functional/tests/math_output_mathjax.py | 2 +- .../functional/tests/math_output_mathml.py | 2 +- .../functional/tests/misc_rst_html4css1.py | 2 +- .../test/functional/tests/misc_rst_html5.py | 2 +- docutils/test/functional/tests/pep_html.py | 2 +- .../tests/standalone_rst_docutils_xml.py | 2 +- .../tests/standalone_rst_html4css1.py | 2 +- .../functional/tests/standalone_rst_html5.py | 2 +- .../functional/tests/standalone_rst_latex.py | 2 +- .../tests/standalone_rst_manpage.py | 2 +- .../tests/standalone_rst_pseudoxml.py | 4 +- .../tests/standalone_rst_s5_html_1.py | 2 +- .../functional/tests/standalone_rst_xetex.py | 2 +- .../test/functional/tests/xetex_cyrillic.py | 2 +- docutils/test/test_command_line.py | 4 +- docutils/test/test_dependencies.py | 14 +- docutils/test/test_error_reporting.py | 2 +- docutils/test/test_functional.py | 4 +- docutils/test/test_io.py | 4 +- .../test_rst/includes/include9.rst | 4 +- .../test_rst/test_directives/include12.rst | 6 +- .../test_rst/test_directives/include13.rst | 6 +- .../test_rst/test_directives/include2.rst | 2 +- .../test_rst/test_directives/include3.rst | 4 +- .../test_rst/test_directives/include8.rst | 4 +- .../test_directives/includes/include14.rst | 4 +- .../test_directives/includes/include15.rst | 4 +- .../test_directives/includes/include16.rst | 6 +- .../test_directives/includes/include4.rst | 8 +- .../test_directives/includes/include5.rst | 4 +- .../includes/more/include6.rst | 4 +- .../includes/sibling/include7.rst | 2 +- .../test_rst/test_directives/test_include.py | 160 +++++++++--------- .../test_rst/test_directives/test_raw.py | 2 +- .../test_rst/test_directives/test_tables.py | 2 +- .../test_parsers/test_rst/test_source_line.py | 26 +-- .../test/test_parsers/test_rst/test_tables.py | 8 +- docutils/test/test_publisher.py | 2 +- docutils/test/test_settings.py | 12 +- .../test/test_transforms/test_hyperlinks.py | 10 +- docutils/test/test_utils.py | 16 +- .../test_writers/test_html4css1_template.py | 2 +- docutils/test/test_writers/test_odt.py | 34 ++-- docutils/tools/buildhtml.py | 10 +- .../tools/dev/generate_punctuation_chars.py | 2 +- docutils/tools/dev/profile_docutils.py | 2 +- docutils/tools/dev/unicode2rstsubs.py | 6 +- docutils/tools/test/test_buildhtml.py | 18 +- sandbox/infrastructure/docutils-update.local | 12 +- 127 files changed, 569 insertions(+), 570 deletions(-) diff --git a/docutils/BUGS.rst b/docutils/BUGS.rst index dc50c72ca..d0a8f7d4a 100644 --- a/docutils/BUGS.rst +++ b/docutils/BUGS.rst @@ -238,7 +238,7 @@ Also see the `SourceForge Bug Tracker`_. unrelated to the target names (i.e., "id"-prefix serial IDs). * The "contents" ID of the local table of contents in - ``test/functional/expected/standalone_rst_pseudoxml.txt`` is lost in + ``test/functional/expected/standalone_rst_pseudoxml.rst`` is lost in the HTML output at ``test/functional/expected/standalone_rst_html4css1.html``. diff --git a/docutils/FAQ.rst b/docutils/FAQ.rst index a46bb1758..9e0ecc6db 100644 --- a/docutils/FAQ.rst +++ b/docutils/FAQ.rst @@ -170,7 +170,7 @@ and reinterpretation of the StructuredText_ and Setext_ lightweight markup systems. If you are reading this on the web, you can see for yourself. `The -source for this FAQ `_ is written in reStructuredText; open +source for this FAQ `_ is written in reStructuredText; open it in another window and compare them side by side. `A ReStructuredText Primer`_ and the `Quick reStructuredText`_ user @@ -216,12 +216,10 @@ __ http://en.wikipedia.org/wiki/Representational_State_Transfer What's the standard filename extension for a reStructuredText file? ------------------------------------------------------------------- -It's ".txt". Some people would like to use ".rest" or ".rst" or -".restx", but why bother? ReStructuredText source files are meant to -be readable as plaintext, and most operating systems already associate -".txt" with text files. Using a specialized filename extension would -require that users alter their OS settings, which is something that -many users will not be willing or able to do. +".rst". + +ReStructuredText files should be readable as plaintext, if the filesystem +makes no special associations. Also see `What's the official MIME type for reStructuredText data?`_ @@ -851,7 +849,7 @@ classes in the HTML: .. role:: rtl .. _stylesheet: docs/user/config.html#stylesheet -.. _class: docs/ref/rst/directives.txt#class +.. _class: docs/ref/rst/directives.rst#class LaTeX is quite hard to implement (it doesn't support the bidi algorithm, so all direction changes - even numbers in RTL text - must diff --git a/docutils/MANIFEST.in b/docutils/MANIFEST.in index b29698fe6..99171a73b 100644 --- a/docutils/MANIFEST.in +++ b/docutils/MANIFEST.in @@ -1,4 +1,4 @@ -include *.txt +include *.rst include install.py recursive-include docutils * recursive-include docs * @@ -7,5 +7,5 @@ recursive-include tools * recursive-include test * exclude test/alltests.out test/record.txt prune test/functional/output -include test/functional/output/README.txt +include test/functional/output/README.rst global-exclude *.pyc *~ __pycache__ .DS_Store diff --git a/docutils/README.rst b/docutils/README.rst index aeeb1551a..473b8be15 100644 --- a/docutils/README.rst +++ b/docutils/README.rst @@ -29,8 +29,8 @@ This is for those who want to get up & running quickly. 3. Use the `front-end scripts`_ to convert reStructuredText documents. Try for example:: - rst2html.py FAQ.txt FAQ.html (Unix) - python tools/rst2html.py FAQ.txt FAQ.html (Windows) + rst2html.py FAQ.rst FAQ.html (Unix) + python tools/rst2html.py FAQ.rst FAQ.html (Windows) See Usage_ below for details. @@ -242,21 +242,21 @@ Contributions are welcome! Project Files & Directories =========================== -* README.txt: You're reading it. +* README.rst: You're reading it. -* COPYING.txt: Public Domain Dedication and copyright details for +* COPYING.rst: Public Domain Dedication and copyright details for non-public-domain files (most are PD). -* FAQ.txt: Frequently Asked Questions (with answers!). +* FAQ.rst: Frequently Asked Questions (with answers!). -* RELEASE-NOTES.txt: Summary of the major changes in recent releases. +* RELEASE-NOTES.rst: Summary of the major changes in recent releases. -* HISTORY.txt: A detailed change log, for the current and all previous +* HISTORY.rst: A detailed change log, for the current and all previous project releases. -* BUGS.txt: Known bugs, and how to report a bug. +* BUGS.rst: Known bugs, and how to report a bug. -* THANKS.txt: List of contributors. +* THANKS.rst: List of contributors. * setup.py: Installation script. See "Installation" below. @@ -266,26 +266,26 @@ Project Files & Directories * docutils: The project source directory, installed as a Python package. -* docs: The project documentation directory. Read ``docs/index.txt`` +* docs: The project documentation directory. Read ``docs/index.rst`` for an overview. * docs/user: The project user documentation directory. Contains the following documents, among others: - - docs/user/tools.txt: Docutils Front-End Tools - - docs/user/latex.txt: Docutils LaTeX Writer - - docs/user/rst/quickstart.txt: A ReStructuredText Primer + - docs/user/tools.rst: Docutils Front-End Tools + - docs/user/latex.rst: Docutils LaTeX Writer + - docs/user/rst/quickstart.rst: A ReStructuredText Primer - docs/user/rst/quickref.html: Quick reStructuredText (HTML only) * docs/ref: The project reference directory. - ``docs/ref/rst/restructuredtext.txt`` is the reStructuredText + ``docs/ref/rst/restructuredtext.rst`` is the reStructuredText reference. * licenses: Directory containing copies of license files for non-public-domain files. * tools: Directory for Docutils front-end tools. See - ``docs/user/tools.txt`` for documentation. + ``docs/user/tools.rst`` for documentation. * test: Unit tests. Not required to use the software, but very useful if you're planning to modify it. See `Running the Test Suite`_ @@ -316,14 +316,14 @@ Alternatively:: python tools\buildhtml.py --config=tools\docutils.conf (Windows) Some files may generate system messages (warnings and errors). The -``docs/user/rst/demo.txt`` file (under the archive directory) contains +``docs/user/rst/demo.rst`` file (under the archive directory) contains five intentional errors. (They test the error reporting mechanism!) Running the Test Suite ====================== -The test suite is documented in `Docutils Testing`_ (docs/dev/testing.txt). +The test suite is documented in `Docutils Testing`_ (docs/dev/testing.rst). To run the entire test suite, open a shell and use the following commands:: diff --git a/docutils/RELEASE-NOTES.rst b/docutils/RELEASE-NOTES.rst index b744db0bb..7b934cead 100644 --- a/docutils/RELEASE-NOTES.rst +++ b/docutils/RELEASE-NOTES.rst @@ -815,7 +815,7 @@ Documentation: * Added `Deploying Docutils Securely`__ - __ docs/howto/security.txt + __ docs/howto/security.rst Internationalization: diff --git a/docutils/docs/dev/distributing.rst b/docutils/docs/dev/distributing.rst index 5d7a29c52..de96555c1 100644 --- a/docutils/docs/dev/distributing.rst +++ b/docutils/docs/dev/distributing.rst @@ -91,7 +91,7 @@ directory and run:: Then install the following files to ``/usr/share/doc/docutils/`` (or wherever you install documentation): -* All ``.html`` and ``.txt`` files in the base directory. +* All ``.html`` and ``.rst`` files in the base directory. * The ``docs/`` directory. @@ -104,19 +104,19 @@ wherever you install documentation): * ``html4css1.css`` in the base directory. -Removing the ``.txt`` Files +Removing the ``.rst`` Files --------------------------- -If you are tight with disk space, you can remove all ``.txt`` files in +If you are tight with disk space, you can remove all ``.rst`` files in the tree except for: * those in the ``licenses/`` directory because they have not been processed to HTML and -* ``user/rst/cheatsheet.txt`` and ``user/rst/demo.txt``, which should +* ``user/rst/cheatsheet.rst`` and ``user/rst/demo.rst``, which should be readable in source form. -Before you remove the ``.txt`` files you should rerun ``buildhtml.py`` +Before you remove the ``.rst`` files you should rerun ``buildhtml.py`` with the ``--no-source-link`` switch to avoid broken references to the source files. diff --git a/docutils/docs/dev/enthought-plan.rst b/docutils/docs/dev/enthought-plan.rst index 380161709..bc38a82a7 100644 --- a/docutils/docs/dev/enthought-plan.rst +++ b/docutils/docs/dev/enthought-plan.rst @@ -9,7 +9,7 @@ :Copyright: 2004 by `Enthought, Inc. `_ :License: `Enthought License`_ (BSD-style) -.. _Enthought License: http://docutils.sf.net/licenses/enthought.txt +.. _Enthought License: http://docutils.sf.net/licenses/enthought.rst This document should be read in conjunction with the `Enthought API Documentation Tool RFP`__ prepared by Janet Swisher. @@ -116,7 +116,7 @@ follows:: :Copyright: This document has been placed in the public domain. This is in conjunction with the "Public Domain Dedication" section of -COPYING.txt__. +COPYING.rst__. __ http://docutils.sourceforge.net/COPYING.html diff --git a/docutils/docs/dev/enthought-rfp.rst b/docutils/docs/dev/enthought-rfp.rst index 986f5604f..05ca94df7 100644 --- a/docutils/docs/dev/enthought-rfp.rst +++ b/docutils/docs/dev/enthought-rfp.rst @@ -10,7 +10,7 @@ :Copyright: 2004 by Enthought, Inc. :License: `Enthought License`_ (BSD Style) -.. _Enthought License: http://docutils.sf.net/licenses/enthought.txt +.. _Enthought License: http://docutils.sf.net/licenses/enthought.rst The following is excerpted from the full RFP, and is published here with permission from `Enthought, Inc.`_ See the `Plan for Enthought diff --git a/docutils/docs/dev/hacking.rst b/docutils/docs/dev/hacking.rst index e4b9558fc..ee41daeea 100644 --- a/docutils/docs/dev/hacking.rst +++ b/docutils/docs/dev/hacking.rst @@ -71,11 +71,11 @@ tree** representation. In this case we are using the **reStructuredText parser** (``docutils/parsers/rst/__init__.py``). To see what that node tree looks like, we call ``quicktest.py`` (which can be found in the ``tools/`` directory of the Docutils distribution) -with our example file (``test.txt``) as first parameter (Windows users -might need to type ``python quicktest.py test.txt``):: +with our example file (``test.rst``) as first parameter (Windows users +might need to type ``python quicktest.py test.rst``):: - $ quicktest.py test.txt - + $ quicktest.py test.rst + My @@ -89,7 +89,7 @@ might need to type ``python quicktest.py test.txt``):: Let us now examine the node tree: The top-level node is ``document``. It has a ``source`` attribute -whose value is ``text.txt``. There are two children: A ``paragraph`` +whose value is ``text.rst``. There are two children: A ``paragraph`` node and a ``target`` node. The ``paragraph`` in turn has children: A text node ("My "), an ``emphasis`` node, a text node (" language is "), a ``reference`` node, and again a ``Text`` node ("."). @@ -126,8 +126,8 @@ has changed after applying the Transforms, we use the .. parsed-literal:: - $ rst2pseudoxml.py test.txt - + $ rst2pseudoxml.py test.rst + My @@ -158,7 +158,7 @@ HTML writer in this case (``docutils/writers/html4css1.py``). The writer receives the node tree and returns the output document. For HTML output, we can test this using the ``rst2html.py`` tool:: - $ rst2html.py --link-stylesheet test.txt + $ rst2html.py --link-stylesheet test.rst @@ -214,7 +214,7 @@ To retrieve the document tree, call:: Please see the docstring of publish_doctree for a list of parameters. .. XXX Need to write a well-readable list of (commonly used) options - of the publish_* functions. Probably in api/publisher.txt. + of the publish_* functions. Probably in api/publisher.rst. ``document`` is the root node of the document tree. You can now change the document by accessing the ``document`` node and its diff --git a/docutils/docs/dev/policies.rst b/docutils/docs/dev/policies.rst index 2d2309749..5a9054647 100644 --- a/docutils/docs/dev/policies.rst +++ b/docutils/docs/dev/policies.rst @@ -285,7 +285,7 @@ also comply with the `backwards compatibility policy`_. `Docutils Front-End Tools`_ should have a new section for any front-end tool that is added. `Docutils Configuration Files`_ should be modified with any settings/options defined. For any - non-trivial change, the HISTORY.txt_ file should be updated. + non-trivial change, the HISTORY.rst_ file should be updated. * _`Tested` means that unit and/or functional tests, that catch all bugs fixed and/or cover all new functionality, have been added to @@ -324,7 +324,7 @@ mistake is easy to fix. That's what version control is for! .. _Docutils Front-End Tools: ../user/tools.html .. _Docutils Configuration Files: ../user/config.html -.. _HISTORY.txt: ../../HISTORY.txt +.. _HISTORY.rst: ../../HISTORY.rst .. _`Version Numbering`: @@ -606,7 +606,7 @@ structure is recommended:: sandbox/ project_name/ # For a collaborative project. - README.txt # Describe the requirements, purpose/goals, usage, + README.rst # Describe the requirements, purpose/goals, usage, # and list the maintainers. docs/ ... @@ -615,7 +615,7 @@ structure is recommended:: component/ # The component is a package. __init__.py # Contains the Reader/Writer class. other1.py # Other modules and data files used - data.txt # by this component. + data.rst # by this component. ... test/ # Test suite. ... diff --git a/docutils/docs/dev/release.rst b/docutils/docs/dev/release.rst index 1a1ed4eb4..8f6f9c04a 100644 --- a/docutils/docs/dev/release.rst +++ b/docutils/docs/dev/release.rst @@ -17,11 +17,11 @@ Releasing (post 2020) Consider **feature freeze** or/and **check-in freeze** . -* Update RELEASE-NOTES.txt add section ``Release ``. +* Update RELEASE-NOTES.rst add section ``Release ``. - Consult HISTORY.txt for important changes. + Consult HISTORY.rst for important changes. -* Change HISTORY.txt title ``Changes Since `` to ``Release ``. +* Change HISTORY.rst title ``Changes Since `` to ``Release ``. * Set new version with ``sandbox/infrastructure/set_version.sh `` @@ -105,7 +105,7 @@ Releasing (post 2020) rm -r docutils.egg-info rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.## -* Check web/index.txt for necessary corrections. +* Check web/index.rst for necessary corrections. * Run sandbox/infrastructure/docutils-update.local to update web-content. * Release to sourceforge. @@ -114,7 +114,7 @@ Releasing (post 2020) * set_version 0.#.#+1b.dev * test with py3 -* docutils/HISTORY.txt: add title "Changes Since 0.##" +* docutils/HISTORY.rst: add title "Changes Since 0.##" * run sandbox/infrastructure/docutils-update.local diff --git a/docutils/docs/dev/repository.rst b/docutils/docs/dev/repository.rst index 875f3cf54..1a3ecd04b 100644 --- a/docutils/docs/dev/repository.rst +++ b/docutils/docs/dev/repository.rst @@ -264,6 +264,7 @@ correct properties set:: [auto-props] *.py = svn:eol-style=native;svn:keywords=Author Date Id Revision *.txt = svn:eol-style=native;svn:keywords=Author Date Id Revision + *.rst = svn:eol-style=native;svn:keywords=Author Date Id Revision *.html = svn:eol-style=native;svn:keywords=Author Date Id Revision *.xml = svn:eol-style=native;svn:keywords=Author Date Id Revision *.tex = svn:eol-style=native;svn:keywords=Author Date Id Revision diff --git a/docutils/docs/dev/rst/alternatives.rst b/docutils/docs/dev/rst/alternatives.rst index 949d03a9c..a4fd289c6 100644 --- a/docutils/docs/dev/rst/alternatives.rst +++ b/docutils/docs/dev/rst/alternatives.rst @@ -3129,7 +3129,7 @@ Add the following directives? enabled with an explicit command-line option or config file setting. Even then, an interactive prompt may be useful, such as: - The file.txt document you are processing contains a "system" + The file.rst document you are processing contains a "system" directive requesting that the ``sudo rm -rf /`` command be executed. Allow it to execute? (y/N) diff --git a/docutils/docs/dev/testing.rst b/docutils/docs/dev/testing.rst index 1b4fbb2d6..5807118ed 100644 --- a/docutils/docs/dev/testing.rst +++ b/docutils/docs/dev/testing.rst @@ -184,7 +184,7 @@ Directory Structure + ``input/`` The input files. - - ``some_test.txt``, for example. + - ``some_test.rst``, for example. + ``output/`` The actual output. @@ -212,7 +212,7 @@ always Docutils' main test directory (``test/``). For example, ``functional/tests/some_test.py`` could read like this:: # Source and destination file names. - test_source = "some_test.txt" + test_source = "some_test.rst" test_destination = "some_test.html" # Keyword parameters passed to publish_file. diff --git a/docutils/docs/dev/todo.rst b/docutils/docs/dev/todo.rst index c5bd46a98..4004fbb36 100644 --- a/docutils/docs/dev/todo.rst +++ b/docutils/docs/dev/todo.rst @@ -319,16 +319,16 @@ Code cleanup and modernization: First the ToC:: .. ToC-list:: - Introduction.txt - Objects.txt - Data.txt - Control.txt + Introduction.rst + Objects.rst + Data.rst + Control.rst Then a sample use:: - .. include:: ToC.txt + .. include:: ToC.rst - As I said earlier in chapter :chapter:`Objects.txt`, the + As I said earlier in chapter :chapter:`Objects.rst`, the reference count gets increased every time a binding is made. Which produces:: @@ -347,14 +347,14 @@ Code cleanup and modernization: files:: .. manifest:: - intro: Introduction.txt - objects: Objects.txt - data: Data.txt - control: Control.txt + intro: Introduction.rst + objects: Objects.rst + data: Data.rst + control: Control.rst Then the sample becomes:: - .. include:: manifest.txt + .. include:: manifest.rst As I said earlier in chapter :chapter:`objects`, the reference count gets increased every time a binding is made. @@ -432,7 +432,7 @@ Code cleanup and modernization: * Support "include" as embedded inline-compatible directive in substitution definitions, e.g. :: - .. |version| include:: version.txt + .. |version| include:: version.rst This document describes version |version| of ... @@ -454,13 +454,13 @@ Code cleanup and modernization: + Variable content taken from a file, e.g. - version.txt:: + version.rst:: .. |version| replace:: 3.1 optionally used as:: - .. include:: version.txt + .. include:: version.rst :optional: .. |version| replace:: unknown This document describes version |version| of ... @@ -529,13 +529,13 @@ Code cleanup and modernization: * Add file-specific settings support to config files, like:: - [file index.txt] + [file index.rst] compact-lists: no Is this even possible? Should the criterion be the name of the input file or the output file? Alternative (more explicit) syntax:: - [source_file index.txt] + [source_file index.rst] ... [dest_file index.html] @@ -554,7 +554,7 @@ Code cleanup and modernization: * tools/buildhtml.py: Extend the --prune option ("prune" config setting) to accept file names (generic path) in addition to - directories (e.g. --prune=docs/user/rst/cheatsheet.txt, which should + directories (e.g. --prune=docs/user/rst/cheatsheet.rst, which should *not* be converted to HTML). * Add support for _`plugins`. @@ -563,7 +563,7 @@ Code cleanup and modernization: /etc/docutils.conf are read as configuration_ files. Proposal: allow ~/.docutils to be a a configuration *directory*, along with /etc/docutils/ and ./docutils.conf/. Within these directories, - check for config.txt files. We can also have subdirectories here, + check for config.rst files. We can also have subdirectories here, for plugins, S5 themes, components (readers/writers/parsers) etc. Docutils will continue to support configuration files for backwards @@ -685,9 +685,9 @@ User Docs . * Add document about what Docutils has previously been used for - (web/use-cases.txt?). + (web/use-cases.rst?). -* Improve index in docs/user/config.txt. +* Improve index in docs/user/config.rst. Developer Docs @@ -704,7 +704,7 @@ Developer Docs - docutils.parsers.rst.states: more complete documentation of parser internals. -* docs/ref/doctree.txt: DTD element structural relationships, +* docs/ref/doctree.rst: DTD element structural relationships, semantics, and attributes. In progress; element descriptions to be completed. @@ -724,7 +724,7 @@ Developer Docs * Document the docutils.nodes APIs. -* Complete the docs/api/publisher.txt docs. +* Complete the docs/api/publisher.rst docs. How-Tos @@ -992,7 +992,7 @@ Misc - Shell sessions:: - $ cat example1.txt + $ cat example1.rst A block beginning with a "$ " prompt is interpreted as a shell session interactive block. As with Doctest blocks, the interactive block ends with the first blank line, and wouldn't @@ -1000,7 +1000,7 @@ Misc - Root shell sessions:: - # cat example2.txt + # cat example2.rst A block beginning with a "# " prompt is interpreted as a root shell session (the user is or has to be logged in as root) interactive block. Again, the block ends with a blank line. @@ -1229,7 +1229,7 @@ Questions Should Docutils support adaptable file extensions in hyperlinks? - In the rST source, sister documents are ".txt" files. If we're + In the rST source, sister documents are ".rst" files. If we're generating HTML, then ".html" is appropriate; if PDF, then ".pdf"; etc. @@ -1315,11 +1315,11 @@ Chris Liechti suggests a new ``:link:`` role in `more-universal links?`__:: .. role:: link(rewrite) - :transform: .txt|.html + :transform: .rst|.html and then to use it:: - for more information see :link:`README.txt` + for more information see :link:`README.rst` it would be useful if it supported an additional option ``:format: html`` so that separate rules for each format can be @@ -1330,30 +1330,30 @@ __ https://sourceforge.net/p/docutils/mailman/message/6919484/ Idea from Jim Fulton: an external lookup table of targets: - I would like to specify the extension (e.g. .txt) [in the + I would like to specify the extension (e.g. .rst) [in the source, rather than ``filename.*``], but tell the converter to change references to the files anticipating that the files will be converted too. For example:: - .. _Another Document: another.txt + .. _Another Document: another.rst - rst2html.py --convert-links "another.txt bar.txt" foo.txt + rst2html.py --convert-links "another.rst bar.rst" foo.rst That is, name the files for which extensions should be converted. Note that I want to refer to original files in the original text - (another.txt rather than another.*) because I want the + (another.rst rather than another.*) because I want the unconverted text to stand on its own. Note that in most cases, people will be able to use globs:: - rst2html.py --convert-link-extensions-for "`echo *.txt`" foo.txt + rst2html.py --convert-link-extensions-for "`echo *.rst`" foo.rst It might be nice to be able to use multiple arguments, as in:: - rst2html.py --convert-link-extensions-for *.txt -- foo.txt + rst2html.py --convert-link-extensions-for *.rst -- foo.rst > Handle documents only, or objects (images, etc.) also? @@ -2464,7 +2464,7 @@ Bug fixes 2017-02-09 this is fixed for enumeration in 0.13.1 - for others, cf. sandbox/latex-variants/tests/rst-levels.txt + for others, cf. sandbox/latex-variants/tests/rst-levels.rst * File names of included graphics (see also `grffile` package). @@ -2654,7 +2654,7 @@ Tables * Table heads and footer for longtable (firstpage lastpage ..)? -* In tools.txt the option tables right column, there should be some more +* In tools.rst the option tables right column, there should be some more spacing between the description and the next paragraph "Default:". * Paragraph separation in tables is hairy. @@ -2678,7 +2678,7 @@ Image and figure directives * compare the test case in: - + `<../../test/functional/input/data/standard.txt>`__ + + `<../../test/functional/input/data/standard.rst>`__ + `<../../test/functional/expected/standalone_rst_html4css1.html>`__ + `<../../test/functional/expected/standalone_rst_latex.tex>`__ diff --git a/docutils/docs/dev/website.rst b/docutils/docs/dev/website.rst index 6851b30b8..f6ed7502e 100644 --- a/docutils/docs/dev/website.rst +++ b/docutils/docs/dev/website.rst @@ -11,7 +11,7 @@ The Docutils web site, , is maintained by the ``docutils-update.local`` script, run by project maintainers on their local machines. The script -will process any .txt file which is newer than the corresponding .html +will process any .rst file which is newer than the corresponding .html file in the local copy of the project's web directory and upload the changes to the web site at SourceForge. @@ -20,7 +20,7 @@ to the web site at SourceForge. The Docutils web site, , is maintained automatically by the ``docutils-update`` script, run as an hourly cron job on shell.berlios.de (by user "wiemann"). The script - will process any .txt file which is newer than the corresponding .html + will process any .rst file which is newer than the corresponding .html file in the project's web directory on shell.berlios.de (``/home/groups/docutils/htdocs/aux/htdocs/``) and upload the changes to the web site at SourceForge. @@ -29,7 +29,7 @@ Please **do not** add any generated .html files to the Docutils repository. They will be generated automatically after a one-time setup (`described below`__). -__ `Adding .txt Files`_ +__ `Adding .rst Files`_ The docutils-update.local__ script is located at ``sandbox/infrastructure/docutils-update.local``. @@ -55,16 +55,16 @@ Setting Up The procedure for that was on the docutils-devel list a while ago. -Adding .txt Files +Adding .rst Files ================= User/Contributor ---------------- -When adding a new .txt file that should be converted to HTML: +When adding a new .rst file that should be converted to HTML: #. Edit sandbox/infrastructure/htmlfiles.lst, and add the .html file - corresponding to the new .txt file (please keep the sorted order). + corresponding to the new .rst file (please keep the sorted order). #. Commit the edited version to the SVN repository. diff --git a/docutils/docs/howto/html-stylesheets.rst b/docutils/docs/howto/html-stylesheets.rst index b03a81ee9..8276cf478 100644 --- a/docutils/docs/howto/html-stylesheets.rst +++ b/docutils/docs/howto/html-stylesheets.rst @@ -79,7 +79,7 @@ Docutils' HTML code in a separate stylesheet. .. base for relative links is /docutils/docs/howto/ .. _Docutils-users: ../user/mailing-lists.html#docutils-users -.. _configuration: ../user/config.txt +.. _configuration: ../user/config.rst .. _sandbox: ../../../sandbox .. _stylesheet collection: ../../../sandbox/stylesheets/ diff --git a/docutils/docs/index.rst b/docutils/docs/index.rst index e5744c66d..b5164963d 100644 --- a/docutils/docs/index.rst +++ b/docutils/docs/index.rst @@ -51,26 +51,26 @@ Project Fundamentals These files are for all Docutils stakeholders. They are kept at the top level of the Docutils project directory. -:README.txt_: Project overview: quick-start, requirements, +:README.rst_: Project overview: quick-start, requirements, installation, and usage. -:COPYING.txt_: Conditions for Docutils redistribution, with links to +:COPYING.rst_: Conditions for Docutils redistribution, with links to licenses. -:FAQ.txt_: Docutils Frequently Asked Questions. If you have a +:FAQ.rst_: Docutils Frequently Asked Questions. If you have a question or issue, there's a good chance it's already answered here. -:BUGS.txt_: A list of known bugs, and how to report a bug. -:RELEASE-NOTES.txt_: Summary of the major changes in recent releases. -:HISTORY.txt_: Detailed change history log. -:THANKS.txt_: Acknowledgements. - -.. _README.txt: ../README.html -.. _BUGS.txt: ../BUGS.html -.. _COPYING.txt: ../COPYING.html +:BUGS.rst_: A list of known bugs, and how to report a bug. +:RELEASE-NOTES.rst_: Summary of the major changes in recent releases. +:HISTORY.rst_: Detailed change history log. +:THANKS.rst_: Acknowledgements. + +.. _README.rst: ../README.html +.. _BUGS.rst: ../BUGS.html +.. _COPYING.rst: ../COPYING.html .. _Docutils FAQ: -.. _FAQ.txt: ../FAQ.html -.. _RELEASE-NOTES.txt: ../RELEASE-NOTES.html -.. _HISTORY.txt: ../HISTORY.html -.. _THANKS.txt: ../THANKS.html +.. _FAQ.rst: ../FAQ.html +.. _RELEASE-NOTES.rst: ../RELEASE-NOTES.html +.. _HISTORY.rst: ../HISTORY.html +.. _THANKS.rst: ../THANKS.html .. _user: @@ -95,13 +95,13 @@ Writer-specific: `reStructuredText `_: * `A ReStructuredText Primer `__ - (see also the `text source `__) + (see also the `text source `__) * `Quick reStructuredText `__ (user reference) -* `reStructuredText Cheat Sheet `__ (text +* `reStructuredText Cheat Sheet `__ (text only; 1 page for syntax, 1 page directive & role reference) * `reStructuredText Demonstration `_ (a demonstration of most reStructuredText features; you can also have a - look at the `text source `__) + look at the `text source `__) Editor support: diff --git a/docutils/docs/ref/doctree.rst b/docutils/docs/ref/doctree.rst index 07a18aa61..6cbadead5 100644 --- a/docutils/docs/ref/doctree.rst +++ b/docutils/docs/ref/doctree.rst @@ -1633,7 +1633,7 @@ Complete pseudo-XML_ result after parsing and applying transforms:: Filename - doctree.txt + doctree.rst This document has been placed in the public domain. @@ -5376,7 +5376,7 @@ The following restrictions are imposed by this model: section. .. The following is not the case with Docutils (since at least 2004) - (cf. test/functional/input/data/standard.txt) + (cf. test/functional/input/data/standard.rst) An additional restriction, which cannot be expressed in the language of DTDs, is imposed by software: diff --git a/docutils/docs/ref/rst/directives.rst b/docutils/docs/ref/rst/directives.rst index bd997b947..1b7d4f836 100644 --- a/docutils/docs/ref/rst/directives.rst +++ b/docutils/docs/ref/rst/directives.rst @@ -1413,7 +1413,7 @@ point of the directive. For example:: This first example will be parsed at the document level, and can thus contain any construct, including section headers. - .. include:: inclusion.txt + .. include:: inclusion.rst Back in the main document. @@ -1421,7 +1421,7 @@ point of the directive. For example:: Therefore it may only contain body elements. It may not contain section headers. - .. include:: inclusion.txt + .. include:: inclusion.rst If an included document fragment contains section structure, the title adornments must match those of the master document. diff --git a/docutils/docs/ref/rst/restructuredtext.rst b/docutils/docs/ref/rst/restructuredtext.rst index 83aa3894b..06f5ec5e3 100644 --- a/docutils/docs/ref/rst/restructuredtext.rst +++ b/docutils/docs/ref/rst/restructuredtext.rst @@ -2570,7 +2570,7 @@ following terms are recognized as containing inline markup strings: No escaping is required inside the following inline markup examples: -- ``*2 * x *a **b *.txt*`` (breaks rule 2; renders as "*2 * x *a **b *.txt*") +- ``*2 * x *a **b *.rst*`` (breaks rule 2; renders as "*2 * x *a **b *.rst*") - ``*2*x a**b O(N**2) e**(x*y) f(x)*f(y) a*(1+2)*`` (breaks rule 7; renders as "*2*x a**b O(N**2) e**(x*y) f(x)*f(y) a*(1+2)*") @@ -2580,13 +2580,13 @@ especially if they represent code snippets. It's a judgment call. The following terms *do* require either literal-quoting or escaping to avoid misinterpretation:: - *4, class_, *args, **kwargs, `TeX-quoted', *ML, *.txt + *4, class_, *args, **kwargs, `TeX-quoted', *ML, *.rst In most use cases, `inline literals`_ or `literal blocks`_ are the best choice (by default, this also selects a monospaced font). Alternatively, the inline markup characters can be escaped:: - \*4, class\_, \*args, \**kwargs, \`TeX-quoted', \*ML, \*.txt + \*4, class\_, \*args, \**kwargs, \`TeX-quoted', \*ML, \*.rst For languages that don't use whitespace between words (e.g. Japanese or @@ -2860,9 +2860,9 @@ If a target URI that is not recognized as `standalone hyperlink`_ happens to end with an underscore, this needs to be backslash-escaped to avoid being parsed as hyperlink reference. For example :: - Use the `source `__. + Use the `source `__. -creates an anonymous reference to the file ``parrots.txt_``. +creates an anonymous reference to the file ``parrots.rst_``. If the reference text happens to end with angle-bracketed text that is *not* a URI or hyperlink reference, at least one angle-bracket needs to diff --git a/docutils/docs/user/Makefile.docutils-update b/docutils/docs/user/Makefile.docutils-update index 4cc8f3c78..3243ea568 100644 --- a/docutils/docs/user/Makefile.docutils-update +++ b/docutils/docs/user/Makefile.docutils-update @@ -1,9 +1,9 @@ -slide-shows.s5.html: slide-shows.txt - rst2s5.py slide-shows.txt slide-shows.s5.html \ +slide-shows.s5.html: slide-shows.rst + rst2s5.py slide-shows.rst slide-shows.s5.html \ --config ../../tools/docutils.conf \ --overwrite-theme-files \ --link-stylesheet \ --no-generator --no-datestamp --no-source-link -smartquotes.html: smartquotes.txt - rst2html.py smartquotes.txt smartquotes.html --smart-quotes=true +smartquotes.html: smartquotes.rst + rst2html.py smartquotes.rst smartquotes.html --smart-quotes=true diff --git a/docutils/docs/user/config.rst b/docutils/docs/user/config.rst index bd0a943e4..2c15228f1 100644 --- a/docutils/docs/user/config.rst +++ b/docutils/docs/user/config.rst @@ -460,13 +460,13 @@ Set to ``-`` in order to write dependencies to stdout. This option is particularly useful in conjunction with programs like ``make`` using ``Makefile`` rules like:: - ham.html: ham.txt $(shell cat hamdeps.txt) - rst2html.py --record-dependencies=hamdeps.txt ham.txt ham.html + ham.html: ham.rst $(shell cat hamdeps.rst) + rst2html.py --record-dependencies=hamdeps.rst ham.rst ham.html If the filesystem encoding differs from utf8, replace the ``cat`` command with a call to a converter, e.g.:: - $(shell iconv -f utf8 -t latin1 hamdeps.txt) + $(shell iconv -f utf8 -t latin1 hamdeps.rst) Default: None. Option: ``--record-dependencies``. diff --git a/docutils/docs/user/latex.rst b/docutils/docs/user/latex.rst index 8af8821d6..84a80a4c3 100644 --- a/docutils/docs/user/latex.rst +++ b/docutils/docs/user/latex.rst @@ -268,12 +268,12 @@ Custom LaTeX code can be placed in `style sheets`_, the The functional tests that come with Docutils, can serve as example. input: - standalone_rst_latex.txt_ (includes files from `tests/functional/input/data`_) + standalone_rst_latex.rst_ (includes files from `tests/functional/input/data`_) expected output: standalone_rst_latex.tex_ -.. _standalone_rst_latex.txt: - https://sf.net/p/docutils/code/HEAD/tree/trunk/docutils/test/functional/input/standalone_rst_latex.txt +.. _standalone_rst_latex.rst: + https://sf.net/p/docutils/code/HEAD/tree/trunk/docutils/test/functional/input/standalone_rst_latex.rst .. _tests/functional/input/data: https://sf.net/p/docutils/code/HEAD/tree/trunk/docutils/test/functional/input/data .. _standalone_rst_latex.tex: @@ -1884,7 +1884,7 @@ footnote mark and text at different pages Docutils stores the footnote text in a separate node, at the position where it is specified in the input document. With the default settings, the footnote is put at the bottom of the page where the footnote text is located, -maybe far away from the footnote mark (see e.g. ``_). +maybe far away from the footnote mark (see e.g. ``_). To get footnote mark and text at the same page, keep footnote mark and footnote text close together. @@ -2130,7 +2130,7 @@ Miscellaneous complicated). * Hyperlinks are not hyphenated; this leads to bad spacing. See - docs/user/rst/demo.txt 2.14 directives. + docs/user/rst/demo.rst 2.14 directives. * Pagestyle headings does not work, when sections are starred. Use LaTeX for the section numbering with the `options/settings`_ diff --git a/docutils/docs/user/odt.rst b/docutils/docs/user/odt.rst index aec04da1b..b173b9287 100644 --- a/docutils/docs/user/odt.rst +++ b/docutils/docs/user/odt.rst @@ -56,7 +56,7 @@ How to Use It Run it from the command line as follows:: - $ rst2odt.py myinput.txt myoutput.odt + $ rst2odt.py myinput.rst myoutput.odt To see usage information and to learn about command line options that you can use, run the following:: @@ -65,10 +65,10 @@ that you can use, run the following:: Examples:: - $ rst2odt.py -s -g python_comments.txt python_comments.odt + $ rst2odt.py -s -g python_comments.rst python_comments.odt - $ rst2odt.py --source-url=odtwriter.txt --generator \ - --stylesheet=/myconfigs/styles.odt odtwriter.txt odtwriter.odt + $ rst2odt.py --source-url=odtwriter.rst --generator \ + --stylesheet=/myconfigs/styles.odt odtwriter.rst odtwriter.odt Configuration file @@ -225,7 +225,7 @@ Notice that you can make a copy of file ``styles.odt``, modify it using ``oowriter``, and then use your copy with the ``--stylesheet=`` command line option. Example:: - $ rst2odt.py --stylesheet=mystyles.odt test2.txt test2.odt + $ rst2odt.py --stylesheet=mystyles.odt test2.rst test2.odt Paragraph styles @@ -746,7 +746,7 @@ contain them, do the following: custom style definitions. For example:: rst2odt.py --odf-config-file=mymappingfile.ini \ - --stylesheet=mystyles.odt mydoc.txt mydoc.odt + --stylesheet=mystyles.odt mydoc.rst mydoc.odt Classes @@ -843,7 +843,7 @@ blocks. In order to activate this, do all of the following: 2. Use the command line option ``--add-syntax-highlighting``. Example:: - $ rst2odt.py --add-syntax-highlight test.txt test.odt + $ rst2odt.py --add-syntax-highlight test.rst test.odt The following styles are defined in styles.odt and are used for literal code blocks and syntax highlighting: @@ -1110,7 +1110,7 @@ or "--custom-odt-footer" command line options. For example, the following inserts a footer containing the page number and page count:: - $ rst2odt.py --custom-odt-footer="Page %p% of %P%" f1.txt f1.odt + $ rst2odt.py --custom-odt-footer="Page %p% of %P%" f1.rst f1.odt Field specifiers diff --git a/docutils/docs/user/rst/cheatsheet.rst b/docutils/docs/user/rst/cheatsheet.rst index 1a3f3e27a..7e844c9b5 100644 --- a/docutils/docs/user/rst/cheatsheet.rst +++ b/docutils/docs/user/rst/cheatsheet.rst @@ -8,7 +8,7 @@ :Description: This is a "docinfo block", or bibliographic field list .. NOTE:: If you are reading this as HTML, please read - ``_ instead to see the input syntax examples! + ``_ instead to see the input syntax examples! Section Structure ================= @@ -35,7 +35,7 @@ Grid table: Simple tables: ================ ============================================================ -List Type Examples (syntax in the `text source `_) +List Type Examples (syntax in the `text source `_) ================ ============================================================ Bullet list * items begin with "-", "+", or "*" Enumerated list 1. items use any variation of "1.", "A)", and "(i)" diff --git a/docutils/docs/user/slide-shows.rst b/docutils/docs/user/slide-shows.rst index aa7c1e130..3529138ee 100644 --- a/docutils/docs/user/slide-shows.rst +++ b/docutils/docs/user/slide-shows.rst @@ -357,11 +357,11 @@ Generating a Slide Show (1) .. class:: incremental 1. Open a console (terminal, command shell) and go to the folder - containing your file, ``slides.txt``. + containing your file, ``slides.rst``. 2. Run the command:: - rst2s5.py slides.txt slides.html + rst2s5.py slides.rst slides.html 3. Specify an S5 theme with the ``--theme`` option. @@ -498,7 +498,7 @@ Themes Example:: - rst2s5 --theme big-black slides.txt slides.html + rst2s5 --theme big-black slides.rst slides.html The default theme is "default". @@ -651,7 +651,7 @@ Making a Custom Theme .. class:: incremental -1. Run "``rst2s5.py --theme .txt .html``". +1. Run "``rst2s5.py --theme .rst .html``". .. class:: handout @@ -666,7 +666,7 @@ Making a Custom Theme Start with ``pretty.css``; edit ``framing.css`` if you need to make layout changes. -4. Run "``rst2s5.py --theme-url ui/ .txt .html``". +4. Run "``rst2s5.py --theme-url ui/ .rst .html``". .. class:: handout diff --git a/docutils/docs/user/tools.rst b/docutils/docs/user/tools.rst index 5b85e076d..a00dcd53e 100644 --- a/docutils/docs/user/tools.rst +++ b/docutils/docs/user/tools.rst @@ -84,7 +84,7 @@ For example, to process a Markdown_ file "``test.md``" into Pseudo-XML_ :: docutils-cli.py --parser=markdown --writer=pseudoxml\ - test.md test.txt + test.md test.rst Use the "--help" option together with the component-selection options to get the correct list of supported command-line options. Example:: @@ -110,7 +110,7 @@ buildhtml.py :Writers: html_, html5_, pep_html_ :Config_: `[buildhtml application]`_ -Use ``buildhtml.py`` to generate ``*.html`` from all the ``*.txt`` files +Use ``buildhtml.py`` to generate ``*.html`` from all the ``*.rst`` files (including PEPs) in each given, and their subdirectories too. (Use the ``--local`` option to skip subdirectories.) @@ -132,7 +132,7 @@ where "X.Y" is the release version. Alternatively:: The current directory (and all subdirectories) is chosen by default if no directory is named. Some files may generate system messages -(docs/user/rst/demo.txt contains intentional errors); use the +(docs/user/rst/demo.rst contains intentional errors); use the ``--quiet`` option to suppress all warnings. The ``--config`` option ensures that the correct settings are in place (a ``docutils.conf`` `configuration file`_ in the current directory is picked up @@ -177,16 +177,16 @@ A CSS stylesheet is required for proper rendering; a simple but complete stylesheet is installed and used by default (see Stylesheets_ below). -For example, to process a reStructuredText file "``test.txt``" into +For example, to process a reStructuredText file "``test.rst``" into HTML:: - rst2html.py test.txt test.html + rst2html.py test.rst test.html Now open the "``test.html``" file in your favorite browser to see the results. To get a footer with a link to the source file, date & time of processing, and links to the Docutils project, add some options:: - rst2html.py -stg test.txt test.html + rst2html.py -stg test.rst test.html Stylesheets @@ -241,7 +241,7 @@ configuration files. For example, to process a PEP into HTML:: cd /docs/peps - rstpep2html.py pep-0287.txt pep-0287.html + rstpep2html.py pep-0287.rst pep-0287.html .. _pep_html: html.html#pep-html @@ -258,10 +258,10 @@ Standards-based Slide Show System" by Eric Meyer. A theme is required for proper rendering; several are distributed with Docutils and others are available; see Themes_ below. -For example, to process a reStructuredText file "``slides.txt``" into +For example, to process a reStructuredText file "``slides.rst``" into S5/HTML:: - rst2s5.py slides.txt slides.html + rst2s5.py slides.rst slides.html Now open the "``slides.html``" file in your favorite browser, switch to full-screen mode, and enjoy the results. @@ -279,7 +279,7 @@ using the "``--theme``" option (for themes that come with Docutils) or the "``--theme-url``" option (for themes anywhere). For example, the "medium-black" theme can be specified as follows:: - rst2s5.py --theme medium-black slides.txt slides.html + rst2s5.py --theme medium-black slides.rst slides.html The theme will be copied to the ``ui/medium-black`` directory. @@ -370,9 +370,9 @@ rst2latex.py The ``rst2latex.py`` front end reads standalone reStructuredText source files and produces LaTeX_ output. For example, to process a -reStructuredText file "``test.txt``" into LaTeX:: +reStructuredText file "``test.rst``" into LaTeX:: - rst2latex.py test.txt test.tex + rst2latex.py test.rst test.tex The output file "``test.tex``" should then be processed with ``latex`` or ``pdflatex`` to get a document in DVI, PostScript or PDF format for @@ -390,9 +390,9 @@ rst2xetex.py The ``rst2xetex.py`` front end reads standalone reStructuredText source files and produces `LaTeX` output for processing with Unicode-aware TeX engines (`LuaTeX`_ or `XeTeX`_). For example, to process a -reStructuredText file "``test.txt``" into LaTeX:: +reStructuredText file "``test.rst``" into LaTeX:: - rst2xetex.py test.txt test.tex + rst2xetex.py test.rst test.tex The output file "``test.tex``" should then be processed with ``xelatex`` or ``lualatex`` to get a document in PDF format for printing or on-screen diff --git a/docutils/docutils/__init__.py b/docutils/docutils/__init__.py index c11274fc5..813b732aa 100644 --- a/docutils/docutils/__init__.py +++ b/docutils/docutils/__init__.py @@ -64,7 +64,7 @@ For version comparison operations, use `__version_info__` (see, below) rather than parsing the text of `__version__`. -See 'Version Numbering' in docs/dev/policies.txt. +See 'Version Numbering' in docs/dev/policies.rst. """ # from functools import total_ordering @@ -119,7 +119,7 @@ def __ge__(self, other): release=False # True for official releases and pre-releases ) """Comprehensive version information tuple. See 'Version Numbering' in -docs/dev/policies.txt.""" +docs/dev/policies.rst.""" __version_details__ = 'release' """Optional extra version details (e.g. 'snapshot 2005-05-29, r3410'). diff --git a/docutils/docutils/transforms/references.py b/docutils/docutils/transforms/references.py index dc156b7b1..55cd52d31 100644 --- a/docutils/docutils/transforms/references.py +++ b/docutils/docutils/transforms/references.py @@ -751,7 +751,7 @@ def apply(self): for node in subdef_copy.children: if isinstance(node, nodes.Referential): # HACK: verify refname attribute exists. - # Test with docs/dev/todo.txt, see. |donate| + # Test with docs/dev/todo.rst, see. |donate| if 'refname' in node: self.document.note_refname(node) diff --git a/docutils/docutils/writers/latex2e/__init__.py b/docutils/docutils/writers/latex2e/__init__.py index 8333c1fb3..4f3428bbf 100644 --- a/docutils/docutils/writers/latex2e/__init__.py +++ b/docutils/docutils/writers/latex2e/__init__.py @@ -2297,7 +2297,7 @@ def visit_footnote_reference(self, node): href = self.document.nameids[node['refname']] # if not self.docutils_footnotes: # # TODO: insert footnote content at (or near) this place - # # see also docs/dev/todo.txt + # # see also docs/dev/todo.rst # try: # referenced_node = self.document.ids[node['refid']] # except (AttributeError, KeyError): diff --git a/docutils/docutils/writers/odf_odt/__init__.py b/docutils/docutils/writers/odf_odt/__init__.py index 89abaceb5..7141be6aa 100644 --- a/docutils/docutils/writers/odf_odt/__init__.py +++ b/docutils/docutils/writers/odf_odt/__init__.py @@ -2672,7 +2672,7 @@ def depart_literal_block(self, node): visit_doctest_block = visit_literal_block depart_doctest_block = depart_literal_block - # placeholder for math (see docs/dev/todo.txt) + # placeholder for math (see docs/dev/todo.rst) def visit_math(self, node): self.document.reporter.warning('"math" role not supported', base_node=node) diff --git a/docutils/setup.cfg b/docutils/setup.cfg index 19fcf35d3..92e4fff82 100644 --- a/docutils/setup.cfg +++ b/docutils/setup.cfg @@ -13,5 +13,5 @@ doc_files = BUGS.txt universal = 1 [codespell] -skip = test,pep-*.txt,iso*.txt +skip = test,pep-*.rst,iso*.rst ignore-words-list = ba,complies,ede,fo,hist,ist,ment,nd,ned,ninjs,ownward,ream,ro,shttp,ta,te,ue,wee,windos diff --git a/docutils/setup.py b/docutils/setup.py index 165762325..850f1dd02 100755 --- a/docutils/setup.py +++ b/docutils/setup.py @@ -40,7 +40,7 @@ 'author_email': 'goodger@python.org', 'maintainer': 'docutils-develop list', 'maintainer_email': 'docutils-develop@lists.sourceforge.net', - 'license': 'public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt)', + 'license': 'public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.rst)', 'platforms': 'OS-independent', 'python_requires': '>=3.7', 'include_package_data': True, diff --git a/docutils/test/data/csv_dep.rst b/docutils/test/data/csv_dep.rst index 14620a926..ab7c229d0 100644 --- a/docutils/test/data/csv_dep.rst +++ b/docutils/test/data/csv_dep.rst @@ -1,2 +1,2 @@ .. csv-table:: - :file: csv_data.txt + :file: csv_data.rst diff --git a/docutils/test/data/dependencies.rst b/docutils/test/data/dependencies.rst index 43eaa8613..4664fe779 100644 --- a/docutils/test/data/dependencies.rst +++ b/docutils/test/data/dependencies.rst @@ -6,14 +6,14 @@ conjunction with programs like ``make``. Included files are recorded: -.. include:: include.txt +.. include:: include.rst .. raw:: HTML - :file: raw.txt + :file: raw.rst Dependencies are recorded only once: -.. include:: include.txt +.. include:: include.rst Image files are only recorded, if actually accessed (to extract the size or if embedded in the output document): @@ -34,4 +34,4 @@ TODO: Paths in included files should be rewritten relative to the base * when loading images, * when recording dependencies. -.. include: subdir/dependencies-included.txt +.. include: subdir/dependencies-included.rst diff --git a/docutils/test/functional/expected/compact_lists.html b/docutils/test/functional/expected/compact_lists.html index ec36e22b1..c034ff0ee 100644 --- a/docutils/test/functional/expected/compact_lists.html +++ b/docutils/test/functional/expected/compact_lists.html @@ -4,7 +4,7 @@ -compact_lists.txt +compact_lists.rst diff --git a/docutils/test/functional/expected/dangerous.html b/docutils/test/functional/expected/dangerous.html index 3cfe767be..02bdc35c1 100644 --- a/docutils/test/functional/expected/dangerous.html +++ b/docutils/test/functional/expected/dangerous.html @@ -4,7 +4,7 @@ -dangerous.txt +dangerous.rst @@ -13,14 +13,14 @@

Potentially dangerous features (security holes):

-

System Message: WARNING/2 (functional/input/dangerous.txt, line 3)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 3)

"include" directive disabled.

 .. include:: /etc/passwd
 
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 4)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 4)

"raw" directive disabled.

 .. raw:: html
@@ -28,7 +28,7 @@
 
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 6)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 6)

"raw" directive disabled.

 .. raw:: html
@@ -36,7 +36,7 @@
 
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 8)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 8)

"raw" directive disabled.

 .. raw:: html
@@ -47,14 +47,14 @@
 
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 13)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 13)

File and URL access deactivated; ignoring "csv-table" directive.

 .. csv-table:: :file: /etc/passwd
 
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 14)

+

System Message: WARNING/2 (functional/input/dangerous.rst, line 14)

File and URL access deactivated; ignoring "csv-table" directive.

 .. csv-table:: :url: file:///etc/passwd
diff --git a/docutils/test/functional/expected/field_name_limit.html b/docutils/test/functional/expected/field_name_limit.html
index 28437d4f5..05bdaa379 100644
--- a/docutils/test/functional/expected/field_name_limit.html
+++ b/docutils/test/functional/expected/field_name_limit.html
@@ -4,7 +4,7 @@
 
 
 
-field_list.txt
+field_list.rst
 
 
 
diff --git a/docutils/test/functional/expected/latex_cornercases.tex b/docutils/test/functional/expected/latex_cornercases.tex
index 5f7b79c44..d6216105f 100644
--- a/docutils/test/functional/expected/latex_cornercases.tex
+++ b/docutils/test/functional/expected/latex_cornercases.tex
@@ -700,7 +700,7 @@ \subsection{TODO%
 \item Tweak vertical spacing in table cells containing multiple elements.
 \end{itemize}
 
-See also \texttt{test/functional/input/data/latex-problematic.txt}.
+See also \texttt{test/functional/input/data/latex-problematic.rst}.
 
 
 \section{Monospaced non-alphanumeric characters%
diff --git a/docutils/test/functional/expected/latex_memoir.tex b/docutils/test/functional/expected/latex_memoir.tex
index 23728e37c..4e2f4276c 100644
--- a/docutils/test/functional/expected/latex_memoir.tex
+++ b/docutils/test/functional/expected/latex_memoir.tex
@@ -1452,7 +1452,7 @@ \subsection{2.14.10   Code%
 \texttt{\DUrole{code}{\DUrole{tex}{\textbackslash{}alpha = f(x)}}} prints $\alpha = f(x)$.
 
 The \texttt{:code:} option of the \DUroletitlereference{include} directive sets the included content
-as a code block, here the rst file \texttt{header\_footer.txt} with line numbers:
+as a code block, here the rst file \texttt{header\_footer.rst} with line numbers:
 
 \begin{DUclass}{code}
 \begin{DUclass}{rst}
@@ -1531,7 +1531,7 @@ \section{2.18   Container%
 \end{DUclass}
 
 % currently not implemented in LaTeX:
-% .. include:: data/header_footer.txt
+% .. include:: data/header_footer.rst
 
 
 \section{2.19   Colspanning tables%
@@ -1961,7 +1961,7 @@ \section{3.2   class handling%
 }
 
 This section tests class handling for block level elements by the LaTeX
-writer. See the input file \texttt{classes\_latex.txt} for the raw LaTeX code used
+writer. See the input file \texttt{classes\_latex.rst} for the raw LaTeX code used
 to style the examples.
 
 An \textquotedbl{}epigraph\textquotedbl{} directive is exported as \textquotedbl{}quote\textquotedbl{} wrapped in a \textquotedbl{}DUclass\textquotedbl{}
@@ -2078,7 +2078,7 @@ \chapter{4   Error Handling%
 \DUtitle[system-message]{system-message
 \raisebox{1em}{\hypertarget{system-message-1}{}}}
 
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~99
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~99
 
 \hyperlink{problematic-1}{
 Undefined substitution referenced: \textquotedbl{}problematic\textquotedbl{}.
@@ -2088,7 +2088,7 @@ \chapter{4   Error Handling%
 \DUtitle[system-message]{system-message
 \raisebox{1em}{\hypertarget{system-message-2}{}}}
 
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~387
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~387
 
 \hyperlink{footnote-reference-8}{
 Unknown target name: \textquotedbl{}5\textquotedbl{}.
@@ -2098,7 +2098,7 @@ \chapter{4   Error Handling%
 \DUtitle[system-message]{system-message
 \raisebox{1em}{\hypertarget{system-message-3}{}}}
 
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~396
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~396
 
 \hyperlink{citation-reference-3}{
 Unknown target name: \textquotedbl{}nonexistent\textquotedbl{}.
@@ -2108,7 +2108,7 @@ \chapter{4   Error Handling%
 \DUtitle[system-message]{system-message
 \raisebox{1em}{\hypertarget{system-message-4}{}}}
 
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~423
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~423
 
 \hyperlink{problematic-2}{
 Unknown target name: \textquotedbl{}hyperlink reference without a target\textquotedbl{}.
@@ -2118,7 +2118,7 @@ \chapter{4   Error Handling%
 \DUtitle[system-message]{system-message
 \raisebox{1em}{\hypertarget{system-message-5}{}}}
 
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~436
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~436
 
 \hyperlink{problematic-3}{
 Duplicate target name, cannot be used as a unique reference: \textquotedbl{}duplicate target names\textquotedbl{}.
diff --git a/docutils/test/functional/expected/standalone_rst_docutils_xml.xml b/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
index af43dc8e0..bc22dc865 100644
--- a/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
+++ b/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
@@ -1,7 +1,7 @@
 
 
 
-
+
     reStructuredText Test Document
     Examples of Syntax Constructs
     
@@ -351,7 +351,7 @@ should    be grouped    in pairs).
                             Four
                         
                     
-                    
+                    
                         Enumerated list start value not ordinal-1: "3" (ordinal 3)
                     
                     
@@ -362,7 +362,7 @@ should    be grouped    in pairs).
                             D
                         
                     
-                    
+                    
                         Enumerated list start value not ordinal-1: "C" (ordinal 3)
                     
                     
@@ -373,7 +373,7 @@ should    be grouped    in pairs).
                             iv
                         
                     
-                    
+                    
                         Enumerated list start value not ordinal-1: "iii" (ordinal 3)
                     
                 
@@ -749,7 +749,7 @@ Python-specific usage examples; begun with ">>>"
             
             
<generated classes="sectnum">2.13.2   </generated>Duplicate Target Names - + Duplicate implicit target name: "duplicate target names". Since there are two "Duplicate Target Names" section headers, we @@ -1360,8 +1360,8 @@ footnotes 1Docutils uses LaTeX syntax for math directives and roles: \alpha = f(x) prints \alpha = f(x). The :code: option of the include directive sets the included content - as a code block, here the rst file header_footer.txt with line numbers: - 1 .. header:: Document header + as a code block, here the rst file header_footer.rst with line numbers: + 1 .. header:: Document header 2 .. footer:: Document footer
@@ -1741,46 +1741,46 @@ Comments may contain non-ASCII characters: ä ö ü æ ø å
Docutils System Messages - + Undefined substitution referenced: "problematic". - + Unknown target name: "5". - + Unknown target name: "nonexistent". - + Unknown target name: "hyperlink reference without a target". - + Duplicate target name, cannot be used as a unique reference: "duplicate target names". - + Hyperlink target "target" is not referenced. - + Hyperlink target "another-target" is not referenced. - + Hyperlink target "image-target-1" is not referenced. - + Hyperlink target "image-target-2" is not referenced. - + Hyperlink target "image-target-3" is not referenced. - + Hyperlink target "target1" is not referenced. - + Hyperlink target "target2" is not referenced. - + Hyperlink target "docutils" is not referenced. - + Hyperlink target "hyperlink targets" is not referenced.
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html index 75d13a7eb..08f574cf5 100644 --- a/docutils/test/functional/expected/standalone_rst_html4css1.html +++ b/docutils/test/functional/expected/standalone_rst_html4css1.html @@ -1027,7 +1027,7 @@

2.14.10   CodeDocutils uses LaTeX syntax for math directives and roles: \alpha = f(x) prints α = f(x).

The :code: option of the include directive sets the included content -as a code block, here the rst file header_footer.txt with line numbers:

+as a code block, here the rst file header_footer.rst with line numbers:

 1 .. header:: Document header
 2 .. footer:: Document footer
@@ -1356,19 +1356,19 @@ 

3   Error Handlin

Docutils System Messages

-

System Message: ERROR/3 (functional/input/data/standard.txt, line 99); backlink

+

System Message: ERROR/3 (functional/input/data/standard.rst, line 99); backlink

Undefined substitution referenced: "problematic".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 387); backlink

+

System Message: ERROR/3 (functional/input/data/standard.rst, line 387); backlink

Unknown target name: "5".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 396); backlink

+

System Message: ERROR/3 (functional/input/data/standard.rst, line 396); backlink

Unknown target name: "nonexistent".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 423); backlink

+

System Message: ERROR/3 (functional/input/data/standard.rst, line 423); backlink

Unknown target name: "hyperlink reference without a target".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 436); backlink

+

System Message: ERROR/3 (functional/input/data/standard.rst, line 436); backlink

Duplicate target name, cannot be used as a unique reference: "duplicate target names".

diff --git a/docutils/test/functional/expected/standalone_rst_html5.html b/docutils/test/functional/expected/standalone_rst_html5.html index af3e04a27..c1b553248 100644 --- a/docutils/test/functional/expected/standalone_rst_html5.html +++ b/docutils/test/functional/expected/standalone_rst_html5.html @@ -1018,7 +1018,7 @@

Docutils uses LaTeX syntax for math directives and roles: \alpha = f(x) prints α = f(x).

The :code: option of the include directive sets the included content -as a code block, here the rst file header_footer.txt with line numbers:

+as a code block, here the rst file header_footer.rst with line numbers:

1 .. header:: Document header
 2 .. footer:: Document footer
@@ -1759,23 +1759,23 @@

Docutils System Messages

diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index 1c2adc208..d78bb8f4d 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -1474,7 +1474,7 @@ \subsubsection{2.14.10   Code% \texttt{\DUrole{code}{\DUrole{tex}{\textbackslash{}alpha = f(x)}}} prints $\alpha = f(x)$. The \texttt{:code:} option of the \DUroletitlereference{include} directive sets the included content -as a code block, here the rst file \texttt{header\_footer.txt} with line numbers: +as a code block, here the rst file \texttt{header\_footer.rst} with line numbers: \begin{DUclass}{code} \begin{DUclass}{rst} @@ -1553,7 +1553,7 @@ \subsection{2.18   Container% \end{DUclass} % currently not implemented in LaTeX: -% .. include:: data/header_footer.txt +% .. include:: data/header_footer.rst \subsection{2.19   Colspanning tables% @@ -1983,7 +1983,7 @@ \subsection{3.2   class handling% } This section tests class handling for block level elements by the LaTeX -writer. See the input file \texttt{classes\_latex.txt} for the raw LaTeX code used +writer. See the input file \texttt{classes\_latex.rst} for the raw LaTeX code used to style the examples. An “epigraph” directive is exported as “quote” wrapped in a “DUclass” @@ -2101,7 +2101,7 @@ \section{4   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-1}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~99 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~99 \hyperlink{problematic-1}{ Undefined substitution referenced: \textquotedbl{}problematic\textquotedbl{}. @@ -2113,7 +2113,7 @@ \section{4   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-2}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~387 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~387 \hyperlink{footnote-reference-8}{ Unknown target name: \textquotedbl{}5\textquotedbl{}. @@ -2125,7 +2125,7 @@ \section{4   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-3}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~396 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~396 \hyperlink{citation-reference-3}{ Unknown target name: \textquotedbl{}nonexistent\textquotedbl{}. @@ -2137,7 +2137,7 @@ \section{4   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-4}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~423 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~423 \hyperlink{problematic-2}{ Unknown target name: \textquotedbl{}hyperlink reference without a target\textquotedbl{}. @@ -2149,7 +2149,7 @@ \section{4   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-5}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~436 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~436 \hyperlink{problematic-3}{ Duplicate target name, cannot be used as a unique reference: \textquotedbl{}duplicate target names\textquotedbl{}. diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.rst b/docutils/test/functional/expected/standalone_rst_pseudoxml.rst index f0df1b4f0..6d44039bc 100644 --- a/docutils/test/functional/expected/standalone_rst_pseudoxml.rst +++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.rst @@ -1,4 +1,4 @@ - + reStructuredText Test Document <subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle"> @@ -636,7 +636,7 @@ <list_item> <paragraph> Four - <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="8" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Enumerated list start value not ordinal-1: "3" (ordinal 3) <enumerated_list enumtype="upperalpha" prefix="" start="3" suffix="."> @@ -646,7 +646,7 @@ <list_item> <paragraph> D - <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="8" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Enumerated list start value not ordinal-1: "C" (ordinal 3) <enumerated_list enumtype="lowerroman" prefix="" start="3" suffix="."> @@ -656,7 +656,7 @@ <list_item> <paragraph> iv - <system_message level="1" line="8" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="8" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Enumerated list start value not ordinal-1: "iii" (ordinal 3) <section ids="definition-lists" names="definition\ lists"> @@ -1152,7 +1152,7 @@ <generated classes="sectnum"> 2.13.2    Duplicate Target Names - <system_message backrefs="duplicate-target-names-1" level="1" line="434" source="functional/input/data/standard.txt" type="INFO"> + <system_message backrefs="duplicate-target-names-1" level="1" line="434" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Duplicate implicit target name: "duplicate target names". <paragraph> @@ -1973,9 +1973,9 @@ directive sets the included content as a code block, here the rst file <literal> - header_footer.txt + header_footer.rst with line numbers: - <literal_block classes="code rst" source="functional/input/data/header_footer.txt" xml:space="preserve"> + <literal_block classes="code rst" source="functional/input/data/header_footer.rst" xml:space="preserve"> <inline classes="ln"> 1 .. header:: Document header @@ -2374,45 +2374,45 @@ <section classes="system-messages"> <title> Docutils System Messages - <system_message backrefs="problematic-1" ids="system-message-1" level="3" line="99" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="problematic-1" ids="system-message-1" level="3" line="99" source="functional/input/data/standard.rst" type="ERROR"> <paragraph> Undefined substitution referenced: "problematic". - <system_message backrefs="footnote-reference-8" ids="system-message-2" level="3" line="387" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="footnote-reference-8" ids="system-message-2" level="3" line="387" source="functional/input/data/standard.rst" type="ERROR"> <paragraph> Unknown target name: "5". - <system_message backrefs="citation-reference-3" ids="system-message-3" level="3" line="396" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="citation-reference-3" ids="system-message-3" level="3" line="396" source="functional/input/data/standard.rst" type="ERROR"> <paragraph> Unknown target name: "nonexistent". - <system_message backrefs="problematic-2" ids="system-message-4" level="3" line="423" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="problematic-2" ids="system-message-4" level="3" line="423" source="functional/input/data/standard.rst" type="ERROR"> <paragraph> Unknown target name: "hyperlink reference without a target". - <system_message backrefs="problematic-3" ids="system-message-5" level="3" line="436" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="problematic-3" ids="system-message-5" level="3" line="436" source="functional/input/data/standard.rst" type="ERROR"> <paragraph> Duplicate target name, cannot be used as a unique reference: "duplicate target names". - <system_message level="1" line="159" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="159" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "target" is not referenced. - <system_message level="1" line="401" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="401" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "another-target" is not referenced. - <system_message level="1" line="471" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="471" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "image-target-1" is not referenced. - <system_message level="1" line="472" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="472" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "image-target-2" is not referenced. - <system_message level="1" line="473" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="473" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "image-target-3" is not referenced. - <system_message level="1" line="636" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="636" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "target1" is not referenced. - <system_message level="1" line="637" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="637" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "target2" is not referenced. - <system_message level="1" line="682" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="682" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "docutils" is not referenced. - <system_message level="1" line="848" source="functional/input/data/standard.txt" type="INFO"> + <system_message level="1" line="848" source="functional/input/data/standard.rst" type="INFO"> <paragraph> Hyperlink target "hyperlink targets" is not referenced. diff --git a/docutils/test/functional/expected/standalone_rst_xetex.tex b/docutils/test/functional/expected/standalone_rst_xetex.tex index 17ad0d562..20024b463 100644 --- a/docutils/test/functional/expected/standalone_rst_xetex.tex +++ b/docutils/test/functional/expected/standalone_rst_xetex.tex @@ -1512,7 +1512,7 @@ \subsubsection{2.14.10   Code% \texttt{\DUrole{code}{\DUrole{tex}{\textbackslash{}alpha = f(x)}}} prints $\alpha = f(x)$. The \texttt{:code:} option of the \DUroletitlereference{include} directive sets the included content -as a code block, here the rst file \texttt{header\_footer.txt} with line numbers: +as a code block, here the rst file \texttt{header\_footer.rst} with line numbers: \begin{DUclass}{code} \begin{DUclass}{rst} @@ -1591,7 +1591,7 @@ \subsection{2.18   Container% \end{DUclass} % currently not implemented in LaTeX: -% .. include:: data/header_footer.txt +% .. include:: data/header_footer.rst \subsection{2.19   Colspanning tables% @@ -2021,7 +2021,7 @@ \subsection{3.2   class handling% } This section tests class handling for block level elements by the LaTeX -writer. See the input file \texttt{classes\_latex.txt} for the raw LaTeX code used +writer. See the input file \texttt{classes\_latex.rst} for the raw LaTeX code used to style the examples. An “epigraph” directive is exported as “quote” wrapped in a “DUclass” @@ -2156,7 +2156,7 @@ \section{5   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-1}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~99 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~99 \hyperlink{problematic-1}{ Undefined substitution referenced: \textquotedbl{}problematic\textquotedbl{}. @@ -2168,7 +2168,7 @@ \section{5   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-2}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~387 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~387 \hyperlink{footnote-reference-8}{ Unknown target name: \textquotedbl{}5\textquotedbl{}. @@ -2180,7 +2180,7 @@ \section{5   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-3}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~396 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~396 \hyperlink{citation-reference-3}{ Unknown target name: \textquotedbl{}nonexistent\textquotedbl{}. @@ -2192,7 +2192,7 @@ \section{5   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-4}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~423 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~423 \hyperlink{problematic-2}{ Unknown target name: \textquotedbl{}hyperlink reference without a target\textquotedbl{}. @@ -2204,7 +2204,7 @@ \section{5   Error Handling% \DUtitle{system-message \raisebox{1em}{\hypertarget{system-message-5}{}}} -{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~436 +{\color{red}ERROR/3} in \texttt{functional/input/data/standard.rst}, line~436 \hyperlink{problematic-3}{ Duplicate target name, cannot be used as a unique reference: \textquotedbl{}duplicate target names\textquotedbl{}. diff --git a/docutils/test/functional/input/data/classes_latex.rst b/docutils/test/functional/input/data/classes_latex.rst index f2e2e5e5b..1fa8fc8bb 100644 --- a/docutils/test/functional/input/data/classes_latex.rst +++ b/docutils/test/functional/input/data/classes_latex.rst @@ -2,7 +2,7 @@ class handling -------------- This section tests class handling for block level elements by the LaTeX -writer. See the input file ``classes_latex.txt`` for the raw LaTeX code used +writer. See the input file ``classes_latex.rst`` for the raw LaTeX code used to style the examples. An "epigraph" directive is exported as "quote" wrapped in a "DUclass" diff --git a/docutils/test/functional/input/data/latex-problematic.rst b/docutils/test/functional/input/data/latex-problematic.rst index acaefc2b7..8311e3137 100644 --- a/docutils/test/functional/input/data/latex-problematic.rst +++ b/docutils/test/functional/input/data/latex-problematic.rst @@ -5,7 +5,7 @@ These tests contain unusual combinations of syntax elements which may cause trouble for the LaTeX writer but do not need to be tested with other writers (e.g. the HTML writer). -The file `latex-problematic.txt` contains the cases with non unsatisfying +The file `latex-problematic.rst` contains the cases with non unsatisfying results. It is only used to control the visual appearance of the output, not by any automated test diff --git a/docutils/test/functional/input/data/standard.rst b/docutils/test/functional/input/data/standard.rst index 854055739..4a2412e8a 100644 --- a/docutils/test/functional/input/data/standard.rst +++ b/docutils/test/functional/input/data/standard.rst @@ -888,9 +888,9 @@ Docutils uses LaTeX syntax for math directives and roles: :tex:`\alpha = f(x)` prints :math:`\alpha = f(x)`. The ``:code:`` option of the `include` directive sets the included content -as a code block, here the rst file ``header_footer.txt`` with line numbers: +as a code block, here the rst file ``header_footer.rst`` with line numbers: -.. include:: header_footer.txt +.. include:: header_footer.rst :code: rst :number-lines: diff --git a/docutils/test/functional/input/data/tables_latex.rst b/docutils/test/functional/input/data/tables_latex.rst index 7bd55b478..b9d26525f 100644 --- a/docutils/test/functional/input/data/tables_latex.rst +++ b/docutils/test/functional/input/data/tables_latex.rst @@ -151,4 +151,4 @@ TODO * Tweak vertical spacing in table cells containing multiple elements. -See also ``test/functional/input/data/latex-problematic.txt``. +See also ``test/functional/input/data/latex-problematic.rst``. diff --git a/docutils/test/functional/input/footnotes.rst b/docutils/test/functional/input/footnotes.rst index aa25055d9..7a9f1dd4b 100644 --- a/docutils/test/functional/input/footnotes.rst +++ b/docutils/test/functional/input/footnotes.rst @@ -5,7 +5,7 @@ Paragraphs may contain footnote references (manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_) or citation references ([CIT2002]_, [DU2015]_). -.. include:: data/standard.txt +.. include:: data/standard.rst :start-after: Footnotes --------- :end-before: Here's a reference to the above, [CIT2002]_, diff --git a/docutils/test/functional/input/latex_cornercases.rst b/docutils/test/functional/input/latex_cornercases.rst index f4c756d5b..350190da2 100644 --- a/docutils/test/functional/input/latex_cornercases.rst +++ b/docutils/test/functional/input/latex_cornercases.rst @@ -6,8 +6,8 @@ trouble for the LaTeX writer. .. contents:: -.. include:: data/section_titles.txt -.. include:: data/option_lists.txt +.. include:: data/section_titles.rst +.. include:: data/option_lists.rst Block Quotes ============ @@ -53,9 +53,9 @@ Image with 100% width: .. image:: ../../../docs/user/rst/images/title.png :width: 100% -.. include:: data/tables_latex.txt -.. include:: data/nonalphanumeric.txt -.. include:: data/unicode.txt -.. include:: data/latex_encoding.txt -.. include:: data/hyperlinking.txt -.. include:: data/urls.txt +.. include:: data/tables_latex.rst +.. include:: data/nonalphanumeric.rst +.. include:: data/unicode.rst +.. include:: data/latex_encoding.rst +.. include:: data/hyperlinking.rst +.. include:: data/urls.rst diff --git a/docutils/test/functional/input/misc_rst_html4css1.rst b/docutils/test/functional/input/misc_rst_html4css1.rst index 45b176ab9..bde36786e 100644 --- a/docutils/test/functional/input/misc_rst_html4css1.rst +++ b/docutils/test/functional/input/misc_rst_html4css1.rst @@ -2,4 +2,4 @@ Additional tests with html4css1 =============================== -.. include:: data/section_titles.txt +.. include:: data/section_titles.rst diff --git a/docutils/test/functional/input/misc_rst_html5.rst b/docutils/test/functional/input/misc_rst_html5.rst index fffa69897..cfe9577dc 100644 --- a/docutils/test/functional/input/misc_rst_html5.rst +++ b/docutils/test/functional/input/misc_rst_html5.rst @@ -4,6 +4,6 @@ Additional tests with HTML 5 .. contents:: -.. include:: data/section_titles.txt -.. include:: data/embed_images.txt -.. include:: data/video.txt +.. include:: data/section_titles.rst +.. include:: data/embed_images.rst +.. include:: data/video.rst diff --git a/docutils/test/functional/input/standalone_rst_docutils_xml.rst b/docutils/test/functional/input/standalone_rst_docutils_xml.rst index 05f0287d0..4cabbd345 100644 --- a/docutils/test/functional/input/standalone_rst_docutils_xml.rst +++ b/docutils/test/functional/input/standalone_rst_docutils_xml.rst @@ -1,7 +1,7 @@ -.. include:: data/standard.txt -.. include:: data/header_footer.txt -.. include:: data/table_colspan.txt -.. include:: data/table_rowspan.txt -.. include:: data/table_complex.txt -.. include:: data/list_table.txt -.. include:: data/errors.txt +.. include:: data/standard.rst +.. include:: data/header_footer.rst +.. include:: data/table_colspan.rst +.. include:: data/table_rowspan.rst +.. include:: data/table_complex.rst +.. include:: data/list_table.rst +.. include:: data/errors.rst diff --git a/docutils/test/functional/input/standalone_rst_html4css1.rst b/docutils/test/functional/input/standalone_rst_html4css1.rst index 3dd36fd5a..3cf58d7a2 100644 --- a/docutils/test/functional/input/standalone_rst_html4css1.rst +++ b/docutils/test/functional/input/standalone_rst_html4css1.rst @@ -1,13 +1,13 @@ -.. include:: data/standard.txt -.. include:: data/header_footer.txt -.. include:: data/table_colspan.txt -.. include:: data/table_rowspan.txt -.. include:: data/table_complex.txt -.. include:: data/list_table.txt -.. include:: data/custom_roles.txt -.. include:: data/svg_images.txt -.. include:: data/swf_images.txt -.. include:: data/errors.txt +.. include:: data/standard.rst +.. include:: data/header_footer.rst +.. include:: data/table_colspan.rst +.. include:: data/table_rowspan.rst +.. include:: data/table_complex.rst +.. include:: data/list_table.rst +.. include:: data/custom_roles.rst +.. include:: data/svg_images.rst +.. include:: data/swf_images.rst +.. include:: data/errors.rst .. footer:: |valid-xhtml10| |valid-CSS2| diff --git a/docutils/test/functional/input/standalone_rst_html5.rst b/docutils/test/functional/input/standalone_rst_html5.rst index c9404ef99..3562f0b0b 100644 --- a/docutils/test/functional/input/standalone_rst_html5.rst +++ b/docutils/test/functional/input/standalone_rst_html5.rst @@ -1,17 +1,17 @@ -.. include:: data/standard.txt -.. include:: data/header_footer.txt -.. include:: data/table_colspan.txt -.. include:: data/table_rowspan.txt -.. include:: data/table_complex.txt -.. include:: data/list_table.txt -.. include:: data/custom_roles.txt +.. include:: data/standard.rst +.. include:: data/header_footer.rst +.. include:: data/table_colspan.rst +.. include:: data/table_rowspan.rst +.. include:: data/table_complex.rst +.. include:: data/list_table.rst +.. include:: data/custom_roles.rst .. HTML Specific -.. include:: data/html5-features.txt -.. include:: data/html5-text-level-tags.txt +.. include:: data/html5-features.rst +.. include:: data/html5-text-level-tags.rst -.. include:: data/errors.txt +.. include:: data/errors.rst .. footer:: |HTML 5| |validator| |valid-CSS2| diff --git a/docutils/test/functional/input/standalone_rst_latex.rst b/docutils/test/functional/input/standalone_rst_latex.rst index d9a33178d..28eacb327 100644 --- a/docutils/test/functional/input/standalone_rst_latex.rst +++ b/docutils/test/functional/input/standalone_rst_latex.rst @@ -1,11 +1,11 @@ -.. include:: data/standard.txt +.. include:: data/standard.rst .. currently not implemented in LaTeX: - .. include:: data/header_footer.txt -.. include:: data/table_colspan.txt -.. include:: data/table_rowspan.txt -.. include:: data/list_table.txt -.. include:: data/custom_roles.txt -.. include:: data/math.txt + .. include:: data/header_footer.rst +.. include:: data/table_colspan.rst +.. include:: data/table_rowspan.rst +.. include:: data/list_table.rst +.. include:: data/custom_roles.rst +.. include:: data/math.rst Tests for the LaTeX writer ========================== @@ -14,8 +14,8 @@ Test syntax elements which may cause trouble for the LaTeX writer but might not need to be tested with other writers. See also the "latex_cornercases" test. -.. include:: data/custom_roles_latex.txt -.. include:: data/classes_latex.txt +.. include:: data/custom_roles_latex.rst +.. include:: data/classes_latex.rst .. preface for System Messages: -.. include:: data/errors.txt +.. include:: data/errors.rst diff --git a/docutils/test/functional/input/standalone_rst_pseudoxml.rst b/docutils/test/functional/input/standalone_rst_pseudoxml.rst index 05f0287d0..4cabbd345 100644 --- a/docutils/test/functional/input/standalone_rst_pseudoxml.rst +++ b/docutils/test/functional/input/standalone_rst_pseudoxml.rst @@ -1,7 +1,7 @@ -.. include:: data/standard.txt -.. include:: data/header_footer.txt -.. include:: data/table_colspan.txt -.. include:: data/table_rowspan.txt -.. include:: data/table_complex.txt -.. include:: data/list_table.txt -.. include:: data/errors.txt +.. include:: data/standard.rst +.. include:: data/header_footer.rst +.. include:: data/table_colspan.rst +.. include:: data/table_rowspan.rst +.. include:: data/table_complex.rst +.. include:: data/list_table.rst +.. include:: data/errors.rst diff --git a/docutils/test/functional/input/standalone_rst_xetex.rst b/docutils/test/functional/input/standalone_rst_xetex.rst index 4dc3c4ff5..36881d3e1 100644 --- a/docutils/test/functional/input/standalone_rst_xetex.rst +++ b/docutils/test/functional/input/standalone_rst_xetex.rst @@ -1,4 +1,4 @@ -.. include:: standalone_rst_latex.txt +.. include:: standalone_rst_latex.rst :end-before: preface for System Messages: Tests for the XeTeX writer @@ -17,4 +17,4 @@ polyglossia_ package. .. _polyglossia: http://ctan.org/pkg/polyglossia .. preface for System Messages: -.. include:: data/errors.txt +.. include:: data/errors.rst diff --git a/docutils/test/functional/tests/compact_lists.py b/docutils/test/functional/tests/compact_lists.py index 9a8ecf044..e8f31c487 100644 --- a/docutils/test/functional/tests/compact_lists.py +++ b/docutils/test/functional/tests/compact_lists.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "compact_lists.txt" +test_source = "compact_lists.rst" test_destination = "compact_lists.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/dangerous.py b/docutils/test/functional/tests/dangerous.py index d2ab51c57..4c9e11c63 100644 --- a/docutils/test/functional/tests/dangerous.py +++ b/docutils/test/functional/tests/dangerous.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "dangerous.txt" +test_source = "dangerous.rst" test_destination = "dangerous.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/field_name_limit.py b/docutils/test/functional/tests/field_name_limit.py index af66c4ddd..f3eed3bf3 100644 --- a/docutils/test/functional/tests/field_name_limit.py +++ b/docutils/test/functional/tests/field_name_limit.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "field_list.txt" +test_source = "field_list.rst" test_destination = "field_name_limit.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/footnotes_html5.py b/docutils/test/functional/tests/footnotes_html5.py index 4b7dc77d3..a7cdc0f01 100644 --- a/docutils/test/functional/tests/footnotes_html5.py +++ b/docutils/test/functional/tests/footnotes_html5.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "footnotes.txt" +test_source = "footnotes.rst" test_destination = "footnotes_html5.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_babel.py b/docutils/test/functional/tests/latex_babel.py index d565da0cd..ea32781e1 100644 --- a/docutils/test/functional/tests/latex_babel.py +++ b/docutils/test/functional/tests/latex_babel.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_babel.txt" +test_source = "latex_babel.rst" test_destination = "latex_babel.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_cornercases.py b/docutils/test/functional/tests/latex_cornercases.py index 6bf46397a..42a7ba577 100644 --- a/docutils/test/functional/tests/latex_cornercases.py +++ b/docutils/test/functional/tests/latex_cornercases.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_cornercases.txt" +test_source = "latex_cornercases.rst" test_destination = "latex_cornercases.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_cyrillic.py b/docutils/test/functional/tests/latex_cyrillic.py index 6d78fc264..4cb6fed37 100644 --- a/docutils/test/functional/tests/latex_cyrillic.py +++ b/docutils/test/functional/tests/latex_cyrillic.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "cyrillic.txt" +test_source = "cyrillic.rst" test_destination = "cyrillic.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_docinfo.py b/docutils/test/functional/tests/latex_docinfo.py index 5b63ea817..11a3ea581 100644 --- a/docutils/test/functional/tests/latex_docinfo.py +++ b/docutils/test/functional/tests/latex_docinfo.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_docinfo.txt" +test_source = "latex_docinfo.rst" test_destination = "latex_docinfo.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_leavevmode.py b/docutils/test/functional/tests/latex_leavevmode.py index 0cefa80ec..32dcfd912 100644 --- a/docutils/test/functional/tests/latex_leavevmode.py +++ b/docutils/test/functional/tests/latex_leavevmode.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_leavevmode.txt" +test_source = "latex_leavevmode.rst" test_destination = "latex_leavevmode.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_literal_block.py b/docutils/test/functional/tests/latex_literal_block.py index 30ea21998..6b35535b1 100644 --- a/docutils/test/functional/tests/latex_literal_block.py +++ b/docutils/test/functional/tests/latex_literal_block.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_literal_block.txt" +test_source = "latex_literal_block.rst" test_destination = "latex_literal_block.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_literal_block_fancyvrb.py b/docutils/test/functional/tests/latex_literal_block_fancyvrb.py index f93dd1fbb..605d575ac 100644 --- a/docutils/test/functional/tests/latex_literal_block_fancyvrb.py +++ b/docutils/test/functional/tests/latex_literal_block_fancyvrb.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_literal_block.txt" +test_source = "latex_literal_block.rst" test_destination = "latex_literal_block_fancyvrb.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_literal_block_listings.py b/docutils/test/functional/tests/latex_literal_block_listings.py index ddc48753c..42605eff9 100644 --- a/docutils/test/functional/tests/latex_literal_block_listings.py +++ b/docutils/test/functional/tests/latex_literal_block_listings.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_literal_block.txt" +test_source = "latex_literal_block.rst" test_destination = "latex_literal_block_listings.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_literal_block_verbatim.py b/docutils/test/functional/tests/latex_literal_block_verbatim.py index 8722f5673..ae3dcdc84 100644 --- a/docutils/test/functional/tests/latex_literal_block_verbatim.py +++ b/docutils/test/functional/tests/latex_literal_block_verbatim.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_literal_block.txt" +test_source = "latex_literal_block.rst" test_destination = "latex_literal_block_verbatim.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_literal_block_verbatimtab.py b/docutils/test/functional/tests/latex_literal_block_verbatimtab.py index d1c4476cc..308f9da0f 100644 --- a/docutils/test/functional/tests/latex_literal_block_verbatimtab.py +++ b/docutils/test/functional/tests/latex_literal_block_verbatimtab.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "latex_literal_block.txt" +test_source = "latex_literal_block.rst" test_destination = "latex_literal_block_verbatimtab.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/latex_memoir.py b/docutils/test/functional/tests/latex_memoir.py index 4ccab6725..cdbf4c562 100644 --- a/docutils/test/functional/tests/latex_memoir.py +++ b/docutils/test/functional/tests/latex_memoir.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "standalone_rst_latex.txt" +test_source = "standalone_rst_latex.rst" test_destination = "latex_memoir.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/math_output_html.py b/docutils/test/functional/tests/math_output_html.py index 0f837eaae..c67cecebf 100644 --- a/docutils/test/functional/tests/math_output_html.py +++ b/docutils/test/functional/tests/math_output_html.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "data/math.txt" +test_source = "data/math.rst" test_destination = "math_output_html.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/math_output_latex.py b/docutils/test/functional/tests/math_output_latex.py index a9d454659..3a109a9da 100644 --- a/docutils/test/functional/tests/math_output_latex.py +++ b/docutils/test/functional/tests/math_output_latex.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "data/math.txt" +test_source = "data/math.rst" test_destination = "math_output_latex.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/math_output_mathjax.py b/docutils/test/functional/tests/math_output_mathjax.py index a0441dd21..67b683e1b 100644 --- a/docutils/test/functional/tests/math_output_mathjax.py +++ b/docutils/test/functional/tests/math_output_mathjax.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "data/math.txt" +test_source = "data/math.rst" test_destination = "math_output_mathjax.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/math_output_mathml.py b/docutils/test/functional/tests/math_output_mathml.py index f73e23632..e22687071 100644 --- a/docutils/test/functional/tests/math_output_mathml.py +++ b/docutils/test/functional/tests/math_output_mathml.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "data/math.txt" +test_source = "data/math.rst" test_destination = "math_output_mathml.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/misc_rst_html4css1.py b/docutils/test/functional/tests/misc_rst_html4css1.py index 6227e9afd..76f8ad3f0 100644 --- a/docutils/test/functional/tests/misc_rst_html4css1.py +++ b/docutils/test/functional/tests/misc_rst_html4css1.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "misc_rst_html4css1.txt" +test_source = "misc_rst_html4css1.rst" test_destination = "misc_rst_html4css1.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/misc_rst_html5.py b/docutils/test/functional/tests/misc_rst_html5.py index d07121f8e..bf6d215a3 100644 --- a/docutils/test/functional/tests/misc_rst_html5.py +++ b/docutils/test/functional/tests/misc_rst_html5.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "misc_rst_html5.txt" +test_source = "misc_rst_html5.rst" test_destination = "misc_rst_html5.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/pep_html.py b/docutils/test/functional/tests/pep_html.py index c73ecb576..cfe065288 100644 --- a/docutils/test/functional/tests/pep_html.py +++ b/docutils/test/functional/tests/pep_html.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "pep_html.txt" +test_source = "pep_html.rst" test_destination = "pep_html.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_docutils_xml.py b/docutils/test/functional/tests/standalone_rst_docutils_xml.py index fbfc2a64d..7bf74e234 100644 --- a/docutils/test/functional/tests/standalone_rst_docutils_xml.py +++ b/docutils/test/functional/tests/standalone_rst_docutils_xml.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_docutils_xml.txt" +test_source = "standalone_rst_docutils_xml.rst" test_destination = "standalone_rst_docutils_xml.xml" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_html4css1.py b/docutils/test/functional/tests/standalone_rst_html4css1.py index 8b32fcc2e..c2076f7e7 100644 --- a/docutils/test/functional/tests/standalone_rst_html4css1.py +++ b/docutils/test/functional/tests/standalone_rst_html4css1.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_html4css1.txt" +test_source = "standalone_rst_html4css1.rst" test_destination = "standalone_rst_html4css1.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_html5.py b/docutils/test/functional/tests/standalone_rst_html5.py index 3035d21c0..97190d022 100644 --- a/docutils/test/functional/tests/standalone_rst_html5.py +++ b/docutils/test/functional/tests/standalone_rst_html5.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_html5.txt" +test_source = "standalone_rst_html5.rst" test_destination = "standalone_rst_html5.html" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_latex.py b/docutils/test/functional/tests/standalone_rst_latex.py index 5f3de30d6..ce2c6872a 100644 --- a/docutils/test/functional/tests/standalone_rst_latex.py +++ b/docutils/test/functional/tests/standalone_rst_latex.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_latex.txt" +test_source = "standalone_rst_latex.rst" test_destination = "standalone_rst_latex.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_manpage.py b/docutils/test/functional/tests/standalone_rst_manpage.py index 0f1d708c1..f8efbfe36 100644 --- a/docutils/test/functional/tests/standalone_rst_manpage.py +++ b/docutils/test/functional/tests/standalone_rst_manpage.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_manpage.txt" +test_source = "standalone_rst_manpage.rst" test_destination = "standalone_rst_manpage.man" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/standalone_rst_pseudoxml.py b/docutils/test/functional/tests/standalone_rst_pseudoxml.py index 75a5002ee..b394aed67 100644 --- a/docutils/test/functional/tests/standalone_rst_pseudoxml.py +++ b/docutils/test/functional/tests/standalone_rst_pseudoxml.py @@ -2,8 +2,8 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_pseudoxml.txt" -test_destination = "standalone_rst_pseudoxml.txt" +test_source = "standalone_rst_pseudoxml.rst" +test_destination = "standalone_rst_pseudoxml.rst" # Keyword parameters passed to publish_file. writer_name = "pseudoxml" diff --git a/docutils/test/functional/tests/standalone_rst_s5_html_1.py b/docutils/test/functional/tests/standalone_rst_s5_html_1.py index 5ea9f2faa..8697aaf57 100755 --- a/docutils/test/functional/tests/standalone_rst_s5_html_1.py +++ b/docutils/test/functional/tests/standalone_rst_s5_html_1.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names: -test_source = 'standalone_rst_s5_html.txt' +test_source = 'standalone_rst_s5_html.rst' test_destination = 'standalone_rst_s5_html_1.html' # Keyword parameters passed to publish_file: diff --git a/docutils/test/functional/tests/standalone_rst_xetex.py b/docutils/test/functional/tests/standalone_rst_xetex.py index db2c2e79e..16c11d997 100644 --- a/docutils/test/functional/tests/standalone_rst_xetex.py +++ b/docutils/test/functional/tests/standalone_rst_xetex.py @@ -2,7 +2,7 @@ exec(_f.read()) # Source and destination file names. -test_source = "standalone_rst_xetex.txt" +test_source = "standalone_rst_xetex.rst" test_destination = "standalone_rst_xetex.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/functional/tests/xetex_cyrillic.py b/docutils/test/functional/tests/xetex_cyrillic.py index 4a35a3bc3..ceb17ba3b 100644 --- a/docutils/test/functional/tests/xetex_cyrillic.py +++ b/docutils/test/functional/tests/xetex_cyrillic.py @@ -1,5 +1,5 @@ # Source and destination file names. -test_source = "cyrillic.txt" +test_source = "cyrillic.rst" test_destination = "xetex-cyrillic.tex" # Keyword parameters passed to publish_file. diff --git a/docutils/test/test_command_line.py b/docutils/test/test_command_line.py index a24605269..dcc316511 100644 --- a/docutils/test/test_command_line.py +++ b/docutils/test/test_command_line.py @@ -31,11 +31,11 @@ class CommandLineEncodingTests(unittest.TestCase): def test_sys_argv_decoding(self): if argv_encoding == 'ascii': # cannot test return - sys.argv.append('--source-url=test.txt') # pure ASCII argument + sys.argv.append('--source-url=test.rst') # pure ASCII argument sys.argv.append(u'--title=Dornröschen') publisher = docutils.core.Publisher() publisher.process_command_line() - self.assertEqual(publisher.settings.source_url, 'test.txt') + self.assertEqual(publisher.settings.source_url, 'test.rst') self.assertEqual(publisher.settings.title, u'Dornröschen') sys.argv.pop() # --title sys.argv.pop() # --source-url diff --git a/docutils/test/test_dependencies.py b/docutils/test/test_dependencies.py index 640b73d03..ed559c497 100755 --- a/docutils/test/test_dependencies.py +++ b/docutils/test/test_dependencies.py @@ -19,11 +19,11 @@ # docutils.utils.DependencyList records POSIX paths, # i.e. "/" as a path separator even on Windows (not os.path.join). -paths = {'include': u'data/include.txt', # included rst file - 'raw': u'data/raw.txt', # included raw "HTML file" +paths = {'include': u'data/include.rst', # included rst file + 'raw': u'data/raw.rst', # included raw "HTML file" 'scaled-image': u'../docs/user/rst/images/biohazard.png', 'figure-image': u'../docs/user/rst/images/title.png', - 'stylesheet': u'data/stylesheet.txt', + 'stylesheet': u'data/stylesheet.rst', } # avoid latex writer future warnings: @@ -33,11 +33,11 @@ class RecordDependenciesTests(unittest.TestCase): def get_record(self, **settings): - recordfile = 'record.txt' + recordfile = 'record.rst' recorder = docutils.utils.DependencyList(recordfile) # (Re) create the record file by running a conversion: settings.setdefault('source_path', - os.path.join('data', 'dependencies.txt')) + os.path.join('data', 'dependencies.rst')) settings.setdefault('settings_overrides', {}) settings['settings_overrides'].update(_disable_config=True, record_dependencies=recorder) @@ -90,9 +90,9 @@ def test_dependencies_latex(self): self.assertEqual(record, expected) def test_csv_dependencies(self): - csvsource = os.path.join('data', 'csv_dep.txt') + csvsource = os.path.join('data', 'csv_dep.rst') self.assertEqual(self.get_record(source_path=csvsource), - ['data/csv_data.txt']) + ['data/csv_data.rst']) def test_stylesheet_dependencies(self): stylesheet = paths['stylesheet'] diff --git a/docutils/test/test_error_reporting.py b/docutils/test/test_error_reporting.py index 878d44042..86a3ac787 100644 --- a/docutils/test/test_error_reporting.py +++ b/docutils/test/test_error_reporting.py @@ -240,7 +240,7 @@ class ErrorReportingTests(unittest.TestCase): document = utils.new_document('test data', settings) def test_include(self): - source = ('.. include:: bogus.txt') + source = ('.. include:: bogus.rst') self.assertRaises(utils.SystemMessage, self.parser.parse, source, self.document) diff --git a/docutils/test/test_functional.py b/docutils/test/test_functional.py index 81025887d..fbb4d6aad 100755 --- a/docutils/test/test_functional.py +++ b/docutils/test/test_functional.py @@ -6,7 +6,7 @@ """ Perform tests with the data in the functional/ directory. -Read README.txt for details on how this is done. +Read README.rst for details on how this is done. """ import sys @@ -53,7 +53,7 @@ def __init__(self): def clear_output_directory(self): files = os.listdir(os.path.join('functional', 'output')) for f in files: - if f in ('README.txt', '.svn', 'CVS'): + if f in ('README.rst', '.svn', 'CVS'): continue # don't touch the infrastructure path = os.path.join('functional', 'output', f) if os.path.isdir(path): diff --git a/docutils/test/test_io.py b/docutils/test/test_io.py index 66643e8e7..9bf85c711 100755 --- a/docutils/test/test_io.py +++ b/docutils/test/test_io.py @@ -98,7 +98,7 @@ def test_bom_detection(self): self.assertEqual(input.successful_encoding, 'utf-8') def test_readlines(self): - input = io.FileInput(source_path='data/include.txt') + input = io.FileInput(source_path='data/include.rst') data = input.readlines() self.assertEqual(data, [u'Some include text.\n']) @@ -110,7 +110,7 @@ def test_heuristics_no_utf8(self): # skipping the heuristic unless decoding fails. return probed_encodings = (locale_encoding, 'latin-1') - input = io.FileInput(source_path='data/latin1.txt') + input = io.FileInput(source_path='data/latin1.rst') data = input.read() if input.successful_encoding not in probed_encodings: raise AssertionError( diff --git a/docutils/test/test_parsers/test_rst/includes/include9.rst b/docutils/test/test_parsers/test_rst/includes/include9.rst index 9164722b3..f121b0cb5 100644 --- a/docutils/test/test_parsers/test_rst/includes/include9.rst +++ b/docutils/test/test_parsers/test_rst/includes/include9.rst @@ -1,3 +1,3 @@ -In ../includes/include9.txt. +In ../includes/include9.rst. -.. include:: ../test_directives/include2.txt +.. include:: ../test_directives/include2.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include12.rst b/docutils/test/test_parsers/test_rst/test_directives/include12.rst index 3c1ccc891..6b2b85675 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/include12.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/include12.rst @@ -1,9 +1,9 @@ -In include12.txt (but before "start here") +In include12.rst (but before "start here") .. start here -In include12.txt (after "start here", before "stop here") +In include12.rst (after "start here", before "stop here") .. stop here -In include12.txt (after "stop here") +In include12.rst (after "stop here") diff --git a/docutils/test/test_parsers/test_rst/test_directives/include13.rst b/docutils/test/test_parsers/test_rst/test_directives/include13.rst index fd7aa0b5f..a745b4db6 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/include13.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/include13.rst @@ -1,11 +1,11 @@ -In include13.txt (but before header) +In include13.rst (but before header) From: me To: you -In include13.txt (between header and signature) +In include13.rst (between header and signature) ------- -- mork of ork -In include13.txt (after signature) +In include13.rst (after signature) diff --git a/docutils/test/test_parsers/test_rst/test_directives/include2.rst b/docutils/test/test_parsers/test_rst/test_directives/include2.rst index 3149a7bf6..18c1a7140 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/include2.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/include2.rst @@ -1,5 +1,5 @@ Here are some paragraphs that can appear at any level. -This file (include2.txt) is used by +This file (include2.rst) is used by ``test_include.py``. diff --git a/docutils/test/test_parsers/test_rst/test_directives/include3.rst b/docutils/test/test_parsers/test_rst/test_directives/include3.rst index 9996a4452..cdef456d5 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/include3.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/include3.rst @@ -1,3 +1,3 @@ -In include3.txt +In include3.rst -.. include:: includes/include4.txt +.. include:: includes/include4.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/include8.rst b/docutils/test/test_parsers/test_rst/test_directives/include8.rst index e7fc57a3d..62dacdee8 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/include8.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/include8.rst @@ -1,3 +1,3 @@ -In include8.txt +In include8.rst -.. include:: ../includes/include9.txt +.. include:: ../includes/include9.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst index 46cdfd69f..fa584b2ac 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/include14.rst @@ -1,4 +1,4 @@ -Including more/include6.txt as rst-code from includes/include14.txt: +Including more/include6.rst as rst-code from includes/include14.rst: -.. include:: more/include6.txt +.. include:: more/include6.rst :code: rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst index 8620cd78e..f42c643ea 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/include15.rst @@ -1,3 +1,3 @@ -File "include15.txt": example of rekursive inclusion. +File "include15.rst": example of rekursive inclusion. -.. include:: include16.txt +.. include:: include16.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst index ae2881fa3..cee39c3e3 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/include16.rst @@ -1,8 +1,8 @@ -File "include16.txt": example of rekursive inclusion. +File "include16.rst": example of rekursive inclusion. -.. include:: include15.txt +.. include:: include15.rst No loop when clipping before the "include" directive: -.. include:: include15.txt +.. include:: include15.rst :end-before: .. include diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst index 4f1ec4d90..a2d291d79 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/include4.rst @@ -1,10 +1,10 @@ -In includes/include4.txt +In includes/include4.rst -.. include:: include5.txt +.. include:: include5.rst -.. include:: include5.txt +.. include:: include5.rst :literal: .. csv-table:: - :file: sibling/include7.txt + :file: sibling/include7.rst :delim: space diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst index 64b3e3aa2..1cc0cfe8f 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/include5.rst @@ -1,3 +1,3 @@ -In includes/include5.txt +In includes/include5.rst -.. include:: more/include6.txt +.. include:: more/include6.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst index 8ac403b01..03bd26e60 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/more/include6.rst @@ -1,3 +1,3 @@ -In includes/more/include6.txt +In includes/more/include6.rst -.. include:: ../sibling/include7.txt +.. include:: ../sibling/include7.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst b/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst index fe85aa963..80ccd256f 100644 --- a/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst +++ b/docutils/test/test_parsers/test_rst/test_directives/includes/sibling/include7.rst @@ -1 +1 @@ -In includes/sibling/include7.txt +In includes/sibling/include7.rst diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_include.py b/docutils/test/test_parsers/test_rst/test_directives/test_include.py index 659b5a3e5..3aacaf428 100755 --- a/docutils/test/test_parsers/test_rst/test_directives/test_include.py +++ b/docutils/test/test_parsers/test_rst/test_directives/test_include.py @@ -30,19 +30,19 @@ def mydir(path): def reldir(path): return DocutilsTestSupport.utils.relative_path(None, path) -include1 = mydir('include1.txt') -include2 = mydir('include2.txt') -include3 = mydir('include3.txt') -include6 = mydir('includes/more/include6.txt') -include8 = mydir('include8.txt') -include10 = mydir('include10.txt') -include11 = mydir('include 11.txt') -include12 = mydir('include12.txt') -include13 = mydir('include13.txt') -include14 = mydir('includes/include14.txt') -include15 = mydir('includes/include15.txt') -include16 = mydir('includes/include16.txt') -include_literal = mydir('include_literal.txt') +include1 = mydir('include1.rst') +include2 = mydir('include2.rst') +include3 = mydir('include3.rst') +include6 = mydir('includes/more/include6.rst') +include8 = mydir('include8.rst') +include10 = mydir('include10.rst') +include11 = mydir('include 11.rst') +include12 = mydir('include12.rst') +include13 = mydir('include13.rst') +include14 = mydir('includes/include14.rst') +include15 = mydir('includes/include15.rst') +include16 = mydir('includes/include16.rst') +include_literal = mydir('include_literal.rst') include_md = mydir('include.md') utf_16_file = mydir('utf-16.csv') utf_16_error_str = ("UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe " @@ -54,14 +54,14 @@ def reldir(path): # Different error for path with 8bit chars with locale == C or None: try: - open(u'\u043c\u0438\u0440.txt') + open(u'\u043c\u0438\u0440.rst') except UnicodeEncodeError: errstr_8bit_path = u"""\ -Cannot encode input file path "\u043c\u0438\u0440.txt" (wrong locale?).\ +Cannot encode input file path "\u043c\u0438\u0440.rst" (wrong locale?).\ """ except: errstr_8bit_path = u"""\ -InputError: [Errno 2] No such file or directory: '\u043c\u0438\u0440.txt'.\ +InputError: [Errno 2] No such file or directory: '\u043c\u0438\u0440.rst'.\ """ # Parsing with Markdown (recommonmark) is an optional feature depending @@ -249,7 +249,7 @@ def reldir(path): Here are some paragraphs that can appear at any level. <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by <literal> test_include.py . @@ -260,7 +260,7 @@ def reldir(path): Include Test ============ -.. include:: nonexistent.txt +.. include:: nonexistent.rst A paragraph. """, @@ -272,9 +272,9 @@ def reldir(path): <system_message level="4" line="4" source="test data" type="SEVERE"> <paragraph> Problems with "include" directive path: - InputError: [Errno 2] No such file or directory: 'nonexistent.txt'. + InputError: [Errno 2] No such file or directory: 'nonexistent.rst'. <literal_block xml:space="preserve"> - .. include:: nonexistent.txt + .. include:: nonexistent.rst <paragraph> A paragraph. """], @@ -369,19 +369,19 @@ def reldir(path): <paragraph> In test data <paragraph> - In include3.txt + In include3.rst <paragraph> - In includes/include4.txt + In includes/include4.rst <paragraph> - In includes/include5.txt + In includes/include5.rst <paragraph> - In includes/more/include6.txt + In includes/more/include6.rst <paragraph> - In includes/sibling/include7.txt - <literal_block source="test_parsers/test_rst/test_directives/includes/include5.txt" xml:space="preserve"> - In includes/include5.txt + In includes/sibling/include7.rst + <literal_block source="test_parsers/test_rst/test_directives/includes/include5.rst" xml:space="preserve"> + In includes/include5.rst \n\ - .. include:: more/include6.txt + .. include:: more/include6.rst <table> <tgroup cols="2"> <colspec colwidth="50"> @@ -393,7 +393,7 @@ def reldir(path): In <entry> <paragraph> - includes/sibling/include7.txt + includes/sibling/include7.rst """], ["""\ Recursive inclusion with specified parser. @@ -410,19 +410,19 @@ def reldir(path): <paragraph> In test data <paragraph> - In include3.txt + In include3.rst <paragraph> - In includes/include4.txt + In includes/include4.rst <paragraph> - In includes/include5.txt + In includes/include5.rst <paragraph> - In includes/more/include6.txt + In includes/more/include6.rst <paragraph> - In includes/sibling/include7.txt - <literal_block source="test_parsers/test_rst/test_directives/includes/include5.txt" xml:space="preserve"> - In includes/include5.txt + In includes/sibling/include7.rst + <literal_block source="test_parsers/test_rst/test_directives/includes/include5.rst" xml:space="preserve"> + In includes/include5.rst \n\ - .. include:: more/include6.txt + .. include:: more/include6.rst <table> <tgroup cols="2"> <colspec colwidth="50"> @@ -434,7 +434,7 @@ def reldir(path): In <entry> <paragraph> - includes/sibling/include7.txt + includes/sibling/include7.rst """], ["""\ In test data @@ -456,19 +456,19 @@ def reldir(path): <paragraph> (Section contents in nested parse; slice of input_lines ViewList.) <paragraph> - In include3.txt + In include3.rst <paragraph> - In includes/include4.txt + In includes/include4.rst <paragraph> - In includes/include5.txt + In includes/include5.rst <paragraph> - In includes/more/include6.txt + In includes/more/include6.rst <paragraph> - In includes/sibling/include7.txt - <literal_block source="test_parsers/test_rst/test_directives/includes/include5.txt" xml:space="preserve"> - In includes/include5.txt + In includes/sibling/include7.rst + <literal_block source="test_parsers/test_rst/test_directives/includes/include5.rst" xml:space="preserve"> + In includes/include5.rst \n\ - .. include:: more/include6.txt + .. include:: more/include6.rst <table> <tgroup cols="2"> <colspec colwidth="50"> @@ -480,7 +480,7 @@ def reldir(path): In <entry> <paragraph> - includes/sibling/include7.txt + includes/sibling/include7.rst """], ["""\ Testing relative includes: @@ -492,14 +492,14 @@ def reldir(path): <paragraph> Testing relative includes: <paragraph> - In include8.txt + In include8.rst <paragraph> - In ../includes/include9.txt. + In ../includes/include9.rst. <paragraph> Here are some paragraphs that can appear at any level. <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by <literal> test_include.py . @@ -542,7 +542,7 @@ def reldir(path): [u"""\ cyrillic filename: -.. include:: \u043c\u0438\u0440.txt +.. include:: \u043c\u0438\u0440.rst """, u"""\ <document source="test data"> @@ -553,7 +553,7 @@ def reldir(path): Problems with "include" directive path: %s <literal_block xml:space="preserve"> - .. include:: \u043c\u0438\u0440.txt + .. include:: \u043c\u0438\u0440.rst """ % errstr_8bit_path], ["""\ Testing errors in included file: @@ -768,7 +768,7 @@ def reldir(path): <problematic ids="problematic-5" refid="system-message-5"> * inline warning - <system_message backrefs="problematic-5" ids="system-message-5" level="2" line="68" source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> + <system_message backrefs="problematic-5" ids="system-message-5" level="2" line="68" source="test_parsers/test_rst/test_directives/include10.rst" type="WARNING"> <paragraph> Inline emphasis start-string without end-string. <attribution> @@ -776,7 +776,7 @@ def reldir(path): <problematic ids="problematic-6" refid="system-message-6"> * inline warning - <system_message backrefs="problematic-6" ids="system-message-6" level="2" line="70" source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> + <system_message backrefs="problematic-6" ids="system-message-6" level="2" line="70" source="test_parsers/test_rst/test_directives/include10.rst" type="WARNING"> <paragraph> Inline emphasis start-string without end-string. <paragraph> @@ -803,7 +803,7 @@ def reldir(path): A simple table with no bottom border - .. end of inclusion from "test_parsers/test_rst/test_directives/include10.txt" + .. end of inclusion from "test_parsers/test_rst/test_directives/include10.rst" """ % {'source': reldir(include10), 'nonexistent': reldir(nonexistent), 'unichr_exception': DocutilsTestSupport.exception_data(chr, int("11111111", 16))[2] @@ -869,7 +869,7 @@ def reldir(path): <paragraph> Include start-line/end-line Test <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by """], ["""\ Include start-line/end-line + start-after Test @@ -886,7 +886,7 @@ def reldir(path): <paragraph> Include start-line/end-line + start-after Test <paragraph> - In include12.txt (after "start here", before "stop here") + In include12.rst (after "start here", before "stop here") <paragraph> Text search is limited to the specified lines. """], @@ -904,7 +904,7 @@ def reldir(path): <paragraph> Include start-after/end-before Test <paragraph> - In include12.txt (after "start here", before "stop here") + In include12.rst (after "start here", before "stop here") <paragraph> A paragraph. """], @@ -924,9 +924,9 @@ def reldir(path): <paragraph> Include start-after/end-before Test, single option variant <paragraph> - In include12.txt (but before "start here") + In include12.rst (but before "start here") <paragraph> - In include12.txt (after "stop here") + In include12.rst (after "stop here") <paragraph> A paragraph. """], @@ -963,7 +963,7 @@ def reldir(path): :end-before: ------- -- mork of ork <paragraph> - In include13.txt (between header and signature) + In include13.rst (between header and signature) <paragraph> A paragraph. """ % include13], @@ -1185,18 +1185,18 @@ def reldir(path): normalized. """ % include_literal], ["""\ -Including includes/include14.txt +Including includes/include14.rst .. include:: %s """ % include14, """\ <document source="test data"> <paragraph> - Including includes/include14.txt + Including includes/include14.rst <paragraph> - Including more/include6.txt as rst-code from includes/include14.txt: + Including more/include6.rst as rst-code from includes/include14.rst: <literal_block classes="code rst" source="%s" xml:space="preserve"> - In includes/more/include6.txt + In includes/more/include6.rst \n\ <inline classes="punctuation"> .. @@ -1205,7 +1205,7 @@ def reldir(path): include <inline classes="punctuation"> :: - ../sibling/include7.txt + ../sibling/include7.rst """ % reldir(include6)], ["""\ Circular inclusion @@ -1217,18 +1217,18 @@ def reldir(path): <paragraph> Circular inclusion <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. <paragraph> - File "include16.txt": example of rekursive inclusion. + File "include16.rst": example of rekursive inclusion. <system_message level="2" line="3" source="%s" type="WARNING"> <paragraph> circular inclusion in "include" directive: %s < %s < %s < test data <literal_block xml:space="preserve"> - .. include:: include15.txt + .. include:: include15.rst <paragraph> No loop when clipping before the "include" directive: <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. """ % (reldir(include16), reldir(include15), reldir(include16), reldir(include15))], ["""\ @@ -1242,22 +1242,22 @@ def reldir(path): <paragraph> Circular inclusion with clipping. <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. <paragraph> - File "include16.txt": example of rekursive inclusion. + File "include16.rst": example of rekursive inclusion. <system_message level="2" line="3" source="%s" type="WARNING"> <paragraph> circular inclusion in "include" directive: %s < %s < %s < %s < test data <literal_block xml:space="preserve"> - .. include:: include15.txt + .. include:: include15.rst <paragraph> No loop when clipping before the "include" directive: <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. <paragraph> No loop when clipping before the "include" directive: <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. """ % (reldir(include16), reldir(include15), reldir(include16), reldir(include15), reldir(include16))], ["""\ @@ -1271,25 +1271,25 @@ def reldir(path): <paragraph> Circular inclusion with specified parser. <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. <paragraph> - File "include16.txt": example of rekursive inclusion. + File "include16.rst": example of rekursive inclusion. <system_message level="2" line="3" source="%s" type="WARNING"> <paragraph> circular inclusion in "include" directive: %s < %s < %s < test data <literal_block xml:space="preserve"> - .. include:: include15.txt + .. include:: include15.rst <paragraph> No loop when clipping before the "include" directive: <paragraph> - File "include15.txt": example of rekursive inclusion. + File "include15.rst": example of rekursive inclusion. """ % (reldir(include16), reldir(include15), reldir(include16), reldir(include15))], ["""\ No circular inclusion. ============================= ============================= -.. include:: data/include.txt .. include:: data/include.txt +.. include:: data/include.rst .. include:: data/include.rst ============================= ============================= """, """\ diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_raw.py b/docutils/test/test_parsers/test_rst/test_directives/test_raw.py index 7ba6774b2..3c7560440 100755 --- a/docutils/test/test_parsers/test_rst/test_directives/test_raw.py +++ b/docutils/test/test_parsers/test_rst/test_directives/test_raw.py @@ -22,7 +22,7 @@ def suite(): return s mydir = 'test_parsers/test_rst/test_directives/' -raw1 = os.path.join(mydir, 'raw1.txt') +raw1 = os.path.join(mydir, 'raw1.rst') utf_16_file = os.path.join(mydir, 'utf-16.csv') utf_16_file_rel = DocutilsTestSupport.utils.relative_path(None, utf_16_file) utf_16_error_str = ("UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe " diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py index 76bfe8f34..83351a9aa 100755 --- a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py +++ b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py @@ -27,7 +27,7 @@ def suite(): mydir = 'test_parsers/test_rst/test_directives/' utf_16_csv = os.path.join(mydir, 'utf-16.csv') utf_16_csv_rel = DocutilsTestSupport.utils.relative_path(None, utf_16_csv) -empty_txt = os.path.join(mydir, 'empty.txt') +empty_txt = os.path.join(mydir, 'empty.rst') unichr_exception = DocutilsTestSupport.exception_data( chr, int("9999999999999", 16))[0] diff --git a/docutils/test/test_parsers/test_rst/test_source_line.py b/docutils/test/test_parsers/test_rst/test_source_line.py index 4b6d95131..cf8cc4bb7 100644 --- a/docutils/test/test_parsers/test_rst/test_source_line.py +++ b/docutils/test/test_parsers/test_rst/test_source_line.py @@ -40,7 +40,7 @@ def suite(): return s mydir = 'test_parsers/test_rst/' -include14 = os.path.join(mydir, 'includes/include14.txt') +include14 = os.path.join(mydir, 'includes/include14.rst') totest = {} @@ -152,28 +152,28 @@ def suite(): <document source="test data"> <paragraph internal:line="1" internal:source="test data"> Paragraph - <paragraph internal:line="1" internal:source="test_parsers/test_rst/includes/include14.txt"> + <paragraph internal:line="1" internal:source="test_parsers/test_rst/includes/include14.rst"> Paragraph starting in line 1. With \n\ <emphasis> inline element in line 2. - <block_quote internal:line="4" internal:source="test_parsers/test_rst/includes/include14.txt"> - <paragraph internal:line="4" internal:source="test_parsers/test_rst/includes/include14.txt"> + <block_quote internal:line="4" internal:source="test_parsers/test_rst/includes/include14.rst"> + <paragraph internal:line="4" internal:source="test_parsers/test_rst/includes/include14.rst"> Block quote in line 4 - <attribution internal:line="6" internal:source="test_parsers/test_rst/includes/include14.txt"> + <attribution internal:line="6" internal:source="test_parsers/test_rst/includes/include14.rst"> attribution in line 6 - <bullet_list bullet="*" internal:line="9" internal:source="test_parsers/test_rst/includes/include14.txt"> - <list_item internal:source="test_parsers/test_rst/includes/include14.txt"> - <paragraph internal:line="9" internal:source="test_parsers/test_rst/includes/include14.txt"> + <bullet_list bullet="*" internal:line="9" internal:source="test_parsers/test_rst/includes/include14.rst"> + <list_item internal:source="test_parsers/test_rst/includes/include14.rst"> + <paragraph internal:line="9" internal:source="test_parsers/test_rst/includes/include14.rst"> bullet list in line 9 - <list_item internal:source="test_parsers/test_rst/includes/include14.txt"> - <paragraph internal:line="10" internal:source="test_parsers/test_rst/includes/include14.txt"> + <list_item internal:source="test_parsers/test_rst/includes/include14.rst"> + <paragraph internal:line="10" internal:source="test_parsers/test_rst/includes/include14.rst"> second item in line 10 - <enumerated_list enumtype="arabic" internal:line="12" internal:source="test_parsers/test_rst/includes/include14.txt" prefix="" suffix="."> - <list_item internal:source="test_parsers/test_rst/includes/include14.txt"> - <paragraph internal:line="12" internal:source="test_parsers/test_rst/includes/include14.txt"> + <enumerated_list enumtype="arabic" internal:line="12" internal:source="test_parsers/test_rst/includes/include14.rst" prefix="" suffix="."> + <list_item internal:source="test_parsers/test_rst/includes/include14.rst"> + <paragraph internal:line="12" internal:source="test_parsers/test_rst/includes/include14.rst"> enumerated list in line 12 """], ["""\ diff --git a/docutils/test/test_parsers/test_rst/test_tables.py b/docutils/test/test_parsers/test_rst/test_tables.py index 50cee7f79..88b7a1632 100755 --- a/docutils/test/test_parsers/test_rst/test_tables.py +++ b/docutils/test/test_parsers/test_rst/test_tables.py @@ -21,7 +21,7 @@ def suite(): return s mydir = 'test_parsers/test_rst/' -include2 = os.path.join(mydir, 'test_directives/include2.txt') +include2 = os.path.join(mydir, 'test_directives/include2.rst') totest = {} @@ -585,7 +585,7 @@ def suite(): Here are some paragraphs that can appear at any level. <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by <literal> test_include.py . @@ -622,7 +622,7 @@ def suite(): Here are some paragraphs that can appear at any level. <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by <literal> test_include.py . @@ -1292,7 +1292,7 @@ def suite(): Here are some paragraphs that can appear at any level. <paragraph> - This file (include2.txt) is used by + This file (include2.rst) is used by <literal> test_include.py . diff --git a/docutils/test/test_publisher.py b/docutils/test/test_publisher.py index 1180e6c68..f5b731057 100755 --- a/docutils/test/test_publisher.py +++ b/docutils/test/test_publisher.py @@ -75,7 +75,7 @@ def test_input_error_handling(self): def test_output_error_handling(self): # pass IOErrors to calling application if `traceback` is True try: - core.publish_cmdline(argv=['data/include.txt', 'nonexisting/path'], + core.publish_cmdline(argv=['data/include.rst', 'nonexisting/path'], settings_overrides={'traceback': True}) except IOError as e: self.assertTrue(isinstance(e, io.OutputError)) diff --git a/docutils/test/test_settings.py b/docutils/test/test_settings.py index 09fed2300..7cb150528 100755 --- a/docutils/test/test_settings.py +++ b/docutils/test/test_settings.py @@ -25,12 +25,12 @@ def fixpath(path): class ConfigFileTests(unittest.TestCase): - config_files = {'old': fixpath('data/config_old.txt'), - 'one': fixpath('data/config_1.txt'), - 'two': fixpath('data/config_2.txt'), - 'list': fixpath('data/config_list.txt'), - 'list2': fixpath('data/config_list_2.txt'), - 'error': fixpath('data/config_error_handler.txt')} + config_files = {'old': fixpath('data/config_old.rst'), + 'one': fixpath('data/config_1.rst'), + 'two': fixpath('data/config_2.rst'), + 'list': fixpath('data/config_list.rst'), + 'list2': fixpath('data/config_list_2.rst'), + 'error': fixpath('data/config_error_handler.rst')} settings = { 'old': {u'datestamp': u'%Y-%m-%d %H:%M UTC', diff --git a/docutils/test/test_transforms/test_hyperlinks.py b/docutils/test/test_transforms/test_hyperlinks.py index 366334d5c..2ecee8546 100755 --- a/docutils/test/test_transforms/test_hyperlinks.py +++ b/docutils/test/test_transforms/test_hyperlinks.py @@ -414,7 +414,7 @@ def suite(): .. _`Element <a>`: .. _`Element <b>`: -.. _`Element <c>`: elements.txt +.. _`Element <c>`: elements.rst """, """\ <document source="test data"> @@ -422,18 +422,18 @@ def suite(): Hyperlinks with angle-bracketed text need escaping. <paragraph> See \n\ - <reference name="Element <a>" refuri="elements.txt"> + <reference name="Element <a>" refuri="elements.rst"> Element <a> , \n\ - <reference name="Element <b>" refuri="elements.txt"> + <reference name="Element <b>" refuri="elements.rst"> Element <b> , and \n\ - <reference name="Element <c>" refuri="elements.txt"> + <reference name="Element <c>" refuri="elements.rst"> Element <c> . <target refid="element-a"> <target refid="element-b"> - <target ids="element-c element-b element-a" names="element\\ <c> element\\ <b> element\\ <a>" refuri="elements.txt"> + <target ids="element-c element-b element-a" names="element\\ <c> element\\ <b> element\\ <a>" refuri="elements.rst"> """], ["""\ .. _target: diff --git a/docutils/test/test_utils.py b/docutils/test/test_utils.py index 25ff011e3..044a9c9b6 100755 --- a/docutils/test/test_utils.py +++ b/docutils/test/test_utils.py @@ -238,7 +238,7 @@ class HelperFunctionTests(unittest.TestCase): # Test conversion from `version information tuple` to a PEP 440 compliant # Docutils version identifier. - # See 'Version Numbering' in docs/dev/policies.txt. + # See 'Version Numbering' in docs/dev/policies.rst. def test_version_identifier(self): release_0_14_final = docutils.VersionInfo( major=0, minor=14, micro=0, @@ -328,17 +328,17 @@ def test_find_file_in_dirs(self): # Search for file `path` in the sequence of directories `dirs`. # Return the first expansion that matches an existing file. dirs = ('nonex', '.', '..') - found = utils.find_file_in_dirs('HISTORY.txt', dirs) + found = utils.find_file_in_dirs('HISTORY.rst', dirs) # returns - # '..\\HISTORY.txt' on windows - # '../HISTORY.txt' on other platforms - # 'HISTORY.txt' if not called from docutils directory. - self.assertTrue(found.startswith('..'), 'HISTORY.txt not found in "..".') + # '..\\HISTORY.rst' on windows + # '../HISTORY.rst' on other platforms + # 'HISTORY.rst' if not called from docutils directory. + self.assertTrue(found.startswith('..'), 'HISTORY.rst not found in "..".') # Return `path` if the file exists in the cwd or if there is no match self.assertEqual(utils.find_file_in_dirs('alltests.py', dirs), 'alltests.py') - self.assertEqual(utils.find_file_in_dirs('gibts/nicht.txt', dirs), - 'gibts/nicht.txt') + self.assertEqual(utils.find_file_in_dirs('gibts/nicht.rst', dirs), + 'gibts/nicht.rst') # samples for the (un)escaping tests: escaped = r'escapes: \*one, \\*two, \\\*three in\side no\ space' + '\\' diff --git a/docutils/test/test_writers/test_html4css1_template.py b/docutils/test/test_writers/test_html4css1_template.py index ed0d51245..04671021b 100755 --- a/docutils/test/test_writers/test_html4css1_template.py +++ b/docutils/test/test_writers/test_html4css1_template.py @@ -18,7 +18,7 @@ def suite(): settings = {'template': os.path.join(DocutilsTestSupport.testroot, - 'data', 'full-template.txt'), + 'data', 'full-template.rst'), 'stylesheet_path': '/test.css', 'embed_stylesheet': 0,} s = DocutilsTestSupport.PublishTestSuite('html', suite_settings=settings) diff --git a/docutils/test/test_writers/test_odt.py b/docutils/test/test_writers/test_odt.py index 2126bf933..f28e09b93 100755 --- a/docutils/test/test_writers/test_odt.py +++ b/docutils/test/test_writers/test_odt.py @@ -13,11 +13,11 @@ test_odt_xxxx, where xxxx describes your new feature. See test_odt_basic for an example. -2. Add a new input reST (.txt) file in test/functional/input. This +2. Add a new input reST (.rst) file in test/functional/input. This file should contain the smallest amount of reST that tests your - new feature. Name this file odt_xxxx.txt. + new feature. Name this file odt_xxxx.rst. -3. Convert your input reST (.txt) file to an ODF (.odt) file using +3. Convert your input reST (.rst) file to an ODF (.odt) file using rst2odt.py. Place this ODF (.odt) file in test/functional/expected. Name this file odt_xxxx.odt. You can also pass parameter save_output_name='filename' to method @@ -130,26 +130,26 @@ def assertEqual(self, first, second, msg=None): # def test_odt_basic(self): - self.process_test('odt_basic.txt', 'odt_basic.odt', + self.process_test('odt_basic.rst', 'odt_basic.odt', save_output_name='odt_basic.odt' ) def test_odt_nested_class(self): - self.process_test('odt_nested_class.txt', + self.process_test('odt_nested_class.rst', 'odt_nested_class.odt', save_output_name='odt_nested_class.odt' ) - self.process_test('odt_unnested_class.txt', + self.process_test('odt_unnested_class.rst', 'odt_unnested_class.odt', save_output_name='odt_unnested_class.odt' ) - self.process_test('odt_no_class.txt', + self.process_test('odt_no_class.rst', 'odt_no_class.odt', save_output_name='odt_no_class.odt' ) def test_odt_tables1(self): - self.process_test('odt_tables1.txt', 'odt_tables1.odt', + self.process_test('odt_tables1.rst', 'odt_tables1.odt', save_output_name='odt_tables1.odt' ) @@ -159,42 +159,42 @@ def test_odt_custom_headfoot(self): 'custom_footer': 'Title: %t% Date: %d3% Time: %t4%', 'language_code': 'en-US', } - self.process_test('odt_custom_headfoot.txt', 'odt_custom_headfoot.odt', + self.process_test('odt_custom_headfoot.rst', 'odt_custom_headfoot.odt', settings_overrides=settings_overrides, save_output_name='odt_custom_headfoot.odt' ) def test_odt_header_footer(self): - self.process_test('odt_header_footer.txt', 'odt_header_footer.odt', + self.process_test('odt_header_footer.rst', 'odt_header_footer.odt', save_output_name='odt_header_footer.odt' ) def test_odt_literal_block(self): - self.process_test('odt_literal_block.txt', 'odt_literal_block.odt') + self.process_test('odt_literal_block.rst', 'odt_literal_block.odt') def test_odt_contents(self): - self.process_test('odt_contents.txt', 'odt_contents.odt') + self.process_test('odt_contents.rst', 'odt_contents.odt') def test_odt_classifier(self): - self.process_test('odt_classifier.txt', 'odt_classifier.odt') + self.process_test('odt_classifier.rst', 'odt_classifier.odt') def test_odt_footnotes(self): - self.process_test('odt_footnotes.txt', 'odt_footnotes.odt', + self.process_test('odt_footnotes.rst', 'odt_footnotes.odt', save_output_name='odt_footnotes.odt' ) def test_odt_raw(self): - self.process_test('odt_raw.txt', 'odt_raw.odt', + self.process_test('odt_raw.rst', 'odt_raw.odt', save_output_name='odt_raw.odt' ) # # Template for new tests. - # Also add functional/input/odt_xxxx.txt and + # Also add functional/input/odt_xxxx.rst and # functional/expected/odt_xxxx.odt # Replace all xxxx with name of your test. # ## def test_odt_xxxx(self): -## self.process_test('odt_xxxx.txt', 'odt_xxxx.odt') +## self.process_test('odt_xxxx.rst', 'odt_xxxx.odt') # ----------------------------------------------------------------- diff --git a/docutils/tools/buildhtml.py b/docutils/tools/buildhtml.py index e638187e5..43add233d 100755 --- a/docutils/tools/buildhtml.py +++ b/docutils/tools/buildhtml.py @@ -5,10 +5,10 @@ # Copyright: This module has been placed in the public domain. """ -Generates .html from all the .txt files in a directory. +Generates .html from all the .rst files in a directory. -Ordinary .txt files are understood to be standalone reStructuredText. -Files named ``pep-*.txt`` are interpreted as reStructuredText PEPs. +Ordinary .rst files are understood to be standalone reStructuredText. +Files named ``pep-*.rst`` are interpreted as reStructuredText PEPs. """ # Once PySource is here, build .html from .py as well. @@ -38,7 +38,7 @@ usage = '%prog [options] [<directory> ...]' -description = ('Generates .html from all the reStructuredText .txt files ' +description = ('Generates .html from all the reStructuredText .rst files ' '(including PEPs) in each <directory> ' '(default is the current directory).') @@ -248,7 +248,7 @@ def visit(self, directory, names, subdirectories): # Modify in place! del names[i] for name in names: - if name.endswith('.txt'): + if name.endswith('.rst'): self.process_txt(directory, name) def process_txt(self, directory, name): diff --git a/docutils/tools/dev/generate_punctuation_chars.py b/docutils/tools/dev/generate_punctuation_chars.py index 16df487b5..6706c3f42 100644 --- a/docutils/tools/dev/generate_punctuation_chars.py +++ b/docutils/tools/dev/generate_punctuation_chars.py @@ -27,7 +27,7 @@ # a new Python or Unicode standard version is an API change (may render valid # rST documents invalid). It should only be done for "feature releases" and # requires also updating the specification of `inline markup recognition -# rules`_ in ../../docs/ref/rst/restructuredtext.txt. +# rules`_ in ../../docs/ref/rst/restructuredtext.rst. # # .. _inline markup recognition rules: # ../../docs/ref/rst/restructuredtext.html#inline-markup diff --git a/docutils/tools/dev/profile_docutils.py b/docutils/tools/dev/profile_docutils.py index 8a54c0f92..d4aa3706f 100755 --- a/docutils/tools/dev/profile_docutils.py +++ b/docutils/tools/dev/profile_docutils.py @@ -15,7 +15,7 @@ print('Profiling...') prof = hotshot.Profile('docutils.prof') -prof.runcall(docutils.core.publish_file, source_path='HISTORY.txt', +prof.runcall(docutils.core.publish_file, source_path='HISTORY.rst', destination_path='prof.HISTORY.html', writer_name='html') prof.close() diff --git a/docutils/tools/dev/unicode2rstsubs.py b/docutils/tools/dev/unicode2rstsubs.py index 6bc30acf6..56a153ff5 100755 --- a/docutils/tools/dev/unicode2rstsubs.py +++ b/docutils/tools/dev/unicode2rstsubs.py @@ -11,7 +11,7 @@ unicode.xml file and produces multiple reStructuredText files (in the current directory) containing substitutions. Entity sets are from ISO 8879 & ISO 9573-13 (combined), MathML, and HTML4. One or two files are produced for each -entity set; a second file with a "-wide.txt" suffix is produced if there are +entity set; a second file with a "-wide.rst" suffix is produced if there are wide-Unicode characters in the set. The input file, unicode.xml, is maintained as part of the MathML 2 @@ -164,9 +164,9 @@ def write_sets(self): def write_set(self, set_name, wide=None): if wide: - outname = set_name + '-wide.txt' + outname = set_name + '-wide.rst' else: - outname = set_name + '.txt' + outname = set_name + '.rst' outfile = open(outname, 'w') print('writing file "%s"' % outname) outfile.write(self.header + '\n') diff --git a/docutils/tools/test/test_buildhtml.py b/docutils/tools/test/test_buildhtml.py index b362239ec..187579da1 100644 --- a/docutils/tools/test/test_buildhtml.py +++ b/docutils/tools/test/test_buildhtml.py @@ -58,17 +58,17 @@ def process_and_return_filelist(options): class BuildHtmlTests(unittest.TestCase): tree = ( "_tmp_test_tree", - "_tmp_test_tree/one.txt", - "_tmp_test_tree/two.txt", + "_tmp_test_tree/one.rst", + "_tmp_test_tree/two.rst", "_tmp_test_tree/dir1", - "_tmp_test_tree/dir1/one.txt", - "_tmp_test_tree/dir1/two.txt", + "_tmp_test_tree/dir1/one.rst", + "_tmp_test_tree/dir1/two.rst", "_tmp_test_tree/dir2", - "_tmp_test_tree/dir2/one.txt", - "_tmp_test_tree/dir2/two.txt", + "_tmp_test_tree/dir2/one.rst", + "_tmp_test_tree/dir2/two.rst", "_tmp_test_tree/dir2/sub", - "_tmp_test_tree/dir2/sub/one.txt", - "_tmp_test_tree/dir2/sub/two.txt", + "_tmp_test_tree/dir2/sub/one.rst", + "_tmp_test_tree/dir2/sub/two.rst", ) def setUp(self): @@ -95,7 +95,7 @@ def tearDown(self): def test_1(self): opts = ["--dry-run", self.root] dirs, files = process_and_return_filelist( opts ) - self.assertEqual(files.count("one.txt"), 4) + self.assertEqual(files.count("one.rst"), 4) def test_local(self): opts = ["--dry-run", "--local", self.root] diff --git a/sandbox/infrastructure/docutils-update.local b/sandbox/infrastructure/docutils-update.local index aa1088219..268128a57 100755 --- a/sandbox/infrastructure/docutils-update.local +++ b/sandbox/infrastructure/docutils-update.local @@ -14,8 +14,8 @@ # # ATTENTION # -# Any .html document with a corresponding .txt file is regenerated -# if the .txt has changed, but no new .html files will be generated. +# Any .html document with a corresponding .rst file is regenerated +# if the .rst has changed, but no new .html files will be generated. # # * Funny thing: sf hides README.txt files. # @@ -189,10 +189,10 @@ cd $htdocsdest # 2. generate empty and old html files to force generation # for any txt under docs ? -find docs -type f -and -name \*.txt -print | ( \ +find docs -type f -and -name \*.rst -print | ( \ while read -r txtfile ; do dir=`dirname $txtfile` - base=`basename $txtfile .txt` + base=`basename $txtfile .rst` htmlfile=$dir/$base.html if [ ! -e $htmlfile ] ; then print_feedback "touch $htmlfile" @@ -236,7 +236,7 @@ for htmlfile in `find . -name '*.html'` ; do if [ "$base" == "standalone_rst_html4strict" ] ; then print_feedback "skipped: $dir $base" else - txtfile=$dir/$base.txt + txtfile=$dir/$base.rst if [ ! -e $txtfile ] ; then txtfile=$dir/$base.rst fi @@ -300,7 +300,7 @@ if test -n "$haschanges"; then if test "${i: -5}" == .html; then # HTML files (including the home page) have highest priority. priority=1.0 - elif test "${i: -4}" == .txt; then + elif test "${i: -4}" == .rst; then # Text files have medium priority. priority=0.5 else