-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsdoc.json
51 lines (51 loc) · 3.81 KB
/
jsdoc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"tags": {
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["./", "README.md"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": ["plugins/markdown", "node_modules/better-docs/typedef-import"],
"opts": {
"encoding": "utf8",
"template": "node_modules/clean-jsdoc-theme",
"destination": "docs/",
"readme": "README.md",
"recurse": true,
"theme_opts": {
"default_theme": "dark",
"add_scripts": "const nestByChar=(menuCategory,menuItems,char)=>{menuItems.map((el)=>{el.dataset.pathName=el.innerText;return el}).filter(({innerText})=>innerText.includes(char)).forEach((menuItem)=>{if(menuItem.closest('ul.category'))return;const paths=menuItem.innerText.split(char);const elementName=paths.pop();paths.forEach((path,index)=>{const categoryPath=paths.join(char).split(path)[0]+path;const existingCategories=menuCategory.querySelectorAll('.category-parent-header');const categoryExists=[...existingCategories].find(({dataset})=>dataset.categoryPath===categoryPath);if(categoryExists!==undefined)return;const category=document.createElement('ul');category.classList.add('category');category.dataset.categoryPath=categoryPath;const categoryHeader=document.createElement('li');categoryHeader.classList.add('category-parent-header');categoryHeader.dataset.categoryPath=categoryPath; category.append(categoryHeader);const categoryHeaderLink=menuCategory.querySelector(`[data-path-name=\"${categoryPath}\"]`);if(categoryHeaderLink!==null){let parentLiToRemove=categoryHeaderLink.parentNode.classList.contains('category-parent-child')?categoryHeaderLink.parentNode:null;categoryHeader.append(categoryHeaderLink);if(parentLiToRemove!==null){parentLiToRemove.remove()}}else{categoryHeader.innerHTML=`<div class=\"sidebar-section-children nolink\"data-path-name=\"${path}\"><a href=\"#\">${path}</a></div>`}if(index===0){menuItem.parentNode.append(category)}else{const parentCategoryPath=categoryPath.split(`${char}${path}`)[0];const parentCategory=menuCategory.querySelector(`[data-category-path=\"${parentCategoryPath}\"]`);const categoryWrapper=document.createElement('li');categoryWrapper.classList.add('category-parent-child');categoryWrapper.append(category);parentCategory.append(categoryWrapper)}});menuItem.querySelector('a').innerText=elementName;const parentCategoryName=paths.join(char);const parentCategory=document.querySelector(`[data-category-path=\"${parentCategoryName}\"]`);const menuItemWrapper=document.createElement('li');menuItemWrapper.classList.add('category-parent-child');menuItemWrapper.append(menuItem);parentCategory.append(menuItemWrapper);});};(()=>{const sidebar=document.querySelector('#sidebar');const menuCategories=sidebar.querySelectorAll('.sidebar-section-children-container');[...menuCategories].forEach((menuCategory)=>{const menuItems=menuCategory.querySelectorAll('.sidebar-section-children');nestByChar(menuCategory,[...menuItems],'/');nestByChar(menuCategory,[...menuItems],'_')})})();",
"create_style": ".sidebar-section-children.nolink a { color: #a0a0a0; } .sidebar-section-children a { padding: 0.25rem 0 0.25rem 2rem; } ul.category { list-style: none; } ul.category li.category-parent-child { padding: 0.25rem 0 0.25rem 2rem; }",
"homepageTitle": "Advent of Code challenge code documentation",
"title": "Advent of Code",
"menu": [
{
"title": "Github",
"link": "https://github.com/MrStanDu33/advent-of-code",
"target": "_blank"
}
],
"sections": [
"Classes",
"Modules",
"Externals",
"Events",
"Namespaces",
"Mixins",
"Tutorials",
"Interfaces",
"Global"
]
}
},
"markdown": {
"hardwrap": false,
"idInHeadings": true
},
"templates": {
"cleverLinks": false,
"monospaceLinks": false
}
}