We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
index.md
1 parent 49d3aa4 commit 3605343Copy full SHA for 3605343
example/buildDocs.sh
@@ -34,6 +34,11 @@ function buildDocs(api) {
34
35
function getComponentName(filepath) {
36
var name = path.basename(filepath);
37
+ // check for index.js
38
+ if (name === 'index.js') {
39
+ const dirs = path.dirname(filepath).split('/');
40
+ name = dirs[dirs.length - 1];
41
+ }
42
var ext;
43
while ((ext = path.extname(name))) {
44
name = name.substring(0, name.length - ext.length);
0 commit comments