Skip to content

Commit

Permalink
Merge branch 'master' into karo/inline-markdown-header-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen authored Jan 26, 2020
2 parents 6dfbaaf + a4b9d76 commit 11aebd8
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 12 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ See the config file for the [fixtures](fixtures/fixtures.conf.json) or the sampl
## Options
Docdash supports the following options:

```
```json5
{
"docdash": {
"static": [false|true], // Display the static members inside the navbar
"sort": [false|true], // Sort the methods in the navbar
"sectionOrder": [ // Order the main section in the navbar (default order shown here)
"sectionOrder": [ // Order the main section in the navbar (default order shown here)
"Classes",
"Modules",
"Externals",
Expand All @@ -87,7 +87,7 @@ Docdash supports the following options:
"Mixins",
"Tutorials",
"Interfaces"
]
],
"disqus": "", // Shortname for your disqus (subdomain during site creation)
"openGraph": { // Open Graph options (mostly for Facebook and other sites to easily extract meta information)
"title": "", // Title of the website
Expand All @@ -108,15 +108,15 @@ Docdash supports the following options:
"navLevel": [integer], // depth level to show in navbar, starting at 0 (false or -1 to disable)
"private": [false|true], // set to false to not show @private in navbar
"removeQuotes": [none|all|trim],// Remove single and double quotes, trim removes only surrounding ones
"scripts": [] // Array of external (or relative local copied using templates.default.staticFiles.include) js or css files to inject into HTML,
"menu":{ // Adding additional menu items after Home
"Project Website":{ // Menu item name
"scripts": [], // Array of external (or relative local copied using templates.default.staticFiles.include) js or css files to inject into HTML,
"menu": { // Adding additional menu items after Home
"Project Website": { // Menu item name
"href":"https://myproject.com", //the rest of HTML properties to add to manu item
"target":"_blank",
"class":"menu-item",
"id":"website_link"
},
"Forum":{
"Forum": {
"href":"https://myproject.com.forum",
"target":"_blank",
"class":"menu-item",
Expand Down
3 changes: 3 additions & 0 deletions publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {
itemsNav += "<ul class='methods'>";

methods.forEach(function (method) {
if (docdash.static === false && method.scope === 'static') return;
if (docdash.private === false && method.access === 'private') return;

itemsNav += "<li data-type='method'";
if(docdash.collapse)
itemsNav += " style='display: none;'";
Expand Down
Binary file added static/fonts/Montserrat-Bold.eot
Binary file not shown.
Binary file added static/fonts/Montserrat-Bold.ttf
Binary file not shown.
Binary file added static/fonts/Montserrat-Bold.woff
Binary file not shown.
Binary file added static/fonts/Montserrat-Bold.woff2
Binary file not shown.
Binary file added static/fonts/Montserrat-Regular.eot
Binary file not shown.
Binary file added static/fonts/Montserrat-Regular.ttf
Binary file not shown.
Binary file added static/fonts/Montserrat-Regular.woff
Binary file not shown.
Binary file added static/fonts/Montserrat-Regular.woff2
Binary file not shown.
35 changes: 30 additions & 5 deletions static/styles/jsdoc.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

* {
box-sizing: border-box
}
Expand Down Expand Up @@ -183,7 +181,6 @@ tt, code, kbd, samp {

#main {
float: right;
min-width: 360px;
width: calc(100% - 240px);
}

Expand Down Expand Up @@ -453,6 +450,12 @@ footer {
user-select: text;
}

.prettyprint.linenums li code:empty:after {
content:"";
display:inline-block;
width:0px;
}

table {
border-spacing: 0;
border: 1px solid #ddd;
Expand Down Expand Up @@ -658,7 +661,7 @@ html[data-search-mode] .level-hide {
}


@media only screen and (min-width: 320px) and (max-width: 680px) {
@media only screen and (max-width: 680px) {
body {
overflow-x: hidden;
}
Expand Down Expand Up @@ -687,7 +690,6 @@ html[data-search-mode] .level-hide {

#main {
width: 100%;
min-width: 360px;
}

#main h1.page-title {
Expand Down Expand Up @@ -715,13 +717,36 @@ html[data-search-mode] .level-hide {
margin-left: 30px;
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
src: url('../fonts/Montserrat-Regular.eot'); /* IE9 Compat Modes */
src: url('../fonts/Montserrat-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/Montserrat-Regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/Montserrat-Regular.woff') format('woff'), /* Pretty Modern Browsers */
url('../fonts/Montserrat-Regular.ttf') format('truetype'); /* Safari, Android, iOS */
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 700;
src: url('../fonts/Montserrat-Bold.eot'); /* IE9 Compat Modes */
src: url('../fonts/Montserrat-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/Montserrat-Bold.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/Montserrat-Bold.woff') format('woff'), /* Pretty Modern Browsers */
url('../fonts/Montserrat-Bold.ttf') format('truetype'); /* Safari, Android, iOS */
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Source Code Pro Light'), local('SourceCodePro-Light'), url(fonts/SourceCodePro-Light.ttf) format('truetype');
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
Expand Down

0 comments on commit 11aebd8

Please sign in to comment.