[libcxx-commits] [libcxx] 09dc8ab - [libc++][doc] Fixes FeatureTestMacroTable.html.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 22 08:25:49 PDT 2021


Author: Mark de Wever
Date: 2021-10-22T17:25:43+02:00
New Revision: 09dc8ab74c946fad74706d86e6a1376b2e384a15

URL: https://github.com/llvm/llvm-project/commit/09dc8ab74c946fad74706d86e6a1376b2e384a15
DIFF: https://github.com/llvm/llvm-project/commit/09dc8ab74c946fad74706d86e6a1376b2e384a15.diff

LOG: [libc++][doc] Fixes FeatureTestMacroTable.html.

`utils/generate_feature_test_macro_components.py` uses the wrong
indentation. `:name: feature-status-table :widths: auto` is rendered as
text instead of being used by Sphinx to render the table properly.

This fixes the identation in the souce and updates the generated output.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D112251

Added: 
    

Modified: 
    libcxx/docs/FeatureTestMacroTable.rst
    libcxx/utils/generate_feature_test_macro_components.py

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/FeatureTestMacroTable.rst b/libcxx/docs/FeatureTestMacroTable.rst
index 68d2e3ae6465a..d58451a55546c 100644
--- a/libcxx/docs/FeatureTestMacroTable.rst
+++ b/libcxx/docs/FeatureTestMacroTable.rst
@@ -18,8 +18,8 @@ Status
 ======
 
 .. table:: Current Status
-     :name: feature-status-table
-     :widths: auto
+    :name: feature-status-table
+    :widths: auto
 
     ================================================= =================
     Macro Name                                        Value

diff  --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index e52b757bc8099..4853ec43f9332 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -1095,8 +1095,8 @@ def produce_docs():
 ======
 
 .. table:: Current Status
-     :name: feature-status-table
-     :widths: auto
+    :name: feature-status-table
+    :widths: auto
 
 {status_tables}
 


        


More information about the libcxx-commits mailing list