Commit b7ed4bece0b8e04f4a8bb773f83093d2cf9c7cf3

Authored by Sergio Oliveira
1 parent 2ee1cfc0
Exists in master and in 90 other branches 3.x, add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup, backup_not_prod, cdtc_configuration, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev-lappis, dev_env_minimal, disable_email_dev, docs, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, performance, prezento, r3, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_backup_emails, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, stable-devel, support_docs, syslog, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Using rst instead of markdown for dns tables

Showing 2 changed files with 23 additions and 8 deletions   Show diff stats
docs/Makefile
... ... @@ -51,7 +51,7 @@ clean:
51 51 rm -f dns.rst
52 52  
53 53 dns.rst: ../test/dns_test.sh
54   - (cd .. && sh test/dns_test.sh --doc) | pandoc -f markdown --to rst --output $@
  54 + (cd .. && sh test/dns_test.sh --doc) > $@
55 55  
56 56 html: dns.rst
57 57 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
... ...
test/dns_test.sh
... ... @@ -64,25 +64,40 @@ test_reverse_dns_relay() {
64 64  
65 65 if [ "$1" = '--doc' ]; then
66 66 check_hostname() {
67   - echo "| ❏ A | $1 | $2 |"
  67 + echo ' * - A'
  68 + echo " - $1"
  69 + echo " - ${2}"
68 70 }
69 71 check_mx() {
70   - echo "| ❏ MX | $1 | ${2}. |"
  72 + echo ' * - MX'
  73 + echo " - $1"
  74 + echo " - ${2}."
71 75 }
72 76 check_reverse_dns() {
73   - echo "| ❏ PTR | $1 | ${2}. |"
  77 + echo ' * - PTR'
  78 + echo " - $1"
  79 + echo " - ${2}."
74 80 }
75 81 header() {
76   - echo "## $1"
  82 + echo "$1"
  83 + echo '=============='
77 84 echo
78   - echo '| Tipo | Entrada | Aponta para |'
79   - echo '|:-----|:------|:----------|'
  85 + echo '.. list-table::'
  86 + echo ' :header-rows: 1'
  87 + echo
  88 + echo ' * - Tipo'
  89 + echo ' - Entrada'
  90 + echo ' - Aponta para'
80 91 }
81 92 footer() {
82 93 echo
83 94 }
84 95 (
85   - echo "# Entradas de DNS necessárias"
  96 + echo
  97 + echo "Entradas de DNS necessárias"
  98 + echo '---------------------------'
  99 + echo
  100 + echo
86 101 header 'DNS(A)'
87 102 test_dns_web
88 103 test_dns_lists
... ...