@docfy/ember 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,7 +56,10 @@ exports.default = plugin_1.default({
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
// 1. exclude extension
|
|
60
|
+
// 2. remove /index.md because of web conventions
|
|
61
|
+
const baseName = page.source.replace('/index.md', '').split('.')[0];
|
|
62
|
+
const componentName = utils_1.generateDemoComponentName(`docfy-demo-${baseName}-${path_1.default.basename(demo.source).split('.')[0]}`, seenNames);
|
|
60
63
|
const demoTitle = unist_util_find_1.default(demo.ast, (node) => node.type === 'heading' && node.depth === 1);
|
|
61
64
|
if (demoTitle) {
|
|
62
65
|
demoTitle.depth = 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docfy/ember",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Ember integration with Docfy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"prember"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "000552c8389ba2104c9ad44f51dea4d5a1c1e51b"
|
|
125
125
|
}
|
|
@@ -71,8 +71,13 @@ export default plugin({
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
+
|
|
75
|
+
// 1. exclude extension
|
|
76
|
+
// 2. remove /index.md because of web conventions
|
|
77
|
+
const baseName = page.source.replace('/index.md', '').split('.')[0];
|
|
78
|
+
|
|
74
79
|
const componentName = generateDemoComponentName(
|
|
75
|
-
`docfy-demo-${
|
|
80
|
+
`docfy-demo-${baseName}-${
|
|
76
81
|
path.basename(demo.source).split('.')[0]
|
|
77
82
|
}`,
|
|
78
83
|
seenNames
|