mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Revise docs (#416)
* chore: add license badge to README * perf(docs): ignore node_modules in markdown preprocessor * docs: remove tabs for install commands on homepage * docs(button-set): improve copy * docs(button): improve usage for icon-only, link buttons * docs: various copy improvements
This commit is contained in:
parent
71c15db2ca
commit
b7bf9ea1f0
9 changed files with 48 additions and 41 deletions
|
@ -127,6 +127,7 @@ module.exports = {
|
|||
extensions: [".svelte", ".svx"],
|
||||
preprocess: [
|
||||
require("svelte-preprocess")({
|
||||
typescript: false,
|
||||
replace: [
|
||||
["process.env.VERSION", JSON.stringify(pkg.version)],
|
||||
["process.env.NODE_ENV", JSON.stringify(NODE_ENV)],
|
||||
|
@ -148,6 +149,7 @@ module.exports = {
|
|||
}),
|
||||
{
|
||||
markup({ content, filename }) {
|
||||
if (/node_modules/.test(filename)) return null;
|
||||
if (filename.endsWith(".svx") && filename.match(/pages\/(recipes)/)) {
|
||||
const toc = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue