xref: /relibc/core_io/doc.sh (revision 3b0668806adbcecb1eba5238f2006a462a73fde3)
152c72ecfSJethro Beekman#!/bin/bash
2*3b066880SJethro Beekmancd "$(dirname "$0")"
3*3b066880SJethro BeekmanHIDE_DOCBLOCKS='.docblock>*, .collapse-toggle, #toggle-all-docs { display: none; } #core_io-show-docblock+p { display: initial }'
4*3b066880SJethro BeekmanFIX_ERRORSTRING='.method a.type[title="core_io::ErrorString"]:before { content: "Error"; }'
5*3b066880SJethro Beekmanrm -rf target/doc
6*3b066880SJethro Beekmancargo rustdoc --features collections -- --html-in-header <(echo '<style type="text/css">'"$HIDE_DOCBLOCKS"'</style>')
7*3b066880SJethro Beekmanmv target/doc target/doc_collections
8*3b066880SJethro Beekmancargo rustdoc --features alloc -- --html-in-header <(echo '<style type="text/css">'"$HIDE_DOCBLOCKS $FIX_ERROR_STRING"'</style>')
9*3b066880SJethro Beekmanmv target/doc target/doc_alloc
10*3b066880SJethro Beekmancargo rustdoc -- --html-in-header <(echo '<style type="text/css">'"$HIDE_DOCBLOCKS $FIX_ERROR_STRING"'</style>')
11