Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeal Murapa authored and Zeal Murapa committed Jan 16, 2020
1 parent b825c9e commit b686b33
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 16 deletions.
14 changes: 9 additions & 5 deletions lib/react-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ require("brace/theme/monokai");

var _componentRenderer = _interopRequireDefault(require("./component-renderer"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _objectSpread2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

Expand Down Expand Up @@ -85,7 +89,7 @@ function (_React$Component) {
script.onload = script.onerror = function () {
this.remove();
self.setState(function (state) {
return _objectSpread2({}, state, {
return _objectSpread({}, state, {
component: window.component[uniqId] || ''
});
});
Expand All @@ -111,7 +115,7 @@ function (_React$Component) {
value: function handleChange(code) {
this.executeScript(code);
this.setState(function (state) {
return _objectSpread2({}, state, {
return _objectSpread({}, state, {
example: code
});
});
Expand Down Expand Up @@ -152,7 +156,7 @@ function (_React$Component) {
value: function toggleEditor(event) {
event.preventDefault();
this.setState(function (state) {
return _objectSpread2({}, state, {
return _objectSpread({}, state, {
showEditor: !state.showEditor
});
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gross-docs",
"version": "1.4.7",
"version": "1.4.8",
"description": "JSdoc theme",
"main": "publish.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion static/styles/app.min.css

This file was deleted.

2 changes: 1 addition & 1 deletion styles/abstracts/variables-layout.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$base-font-size: 15px
$header-font-family: 'Oswald', sans-serif
$header-font-family: 'Muli', sans-serif
$base-font-family: 'Muli', sans-serif
$code-font-family: 'Inconsolata', monospace
15 changes: 9 additions & 6 deletions styles/base/content.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@
header.page-title
h1
font-family: $header-font-family
font-size: 47px
font-size: 38px
font-weight: bold
margin: 0px 0 52px
font-variant: small-caps
margin: 0px 0 32px
p
font-size: 13px
margin: 0 0 5px
text-transform: uppercase
h2
font-size: 27px
line-height: 52px
font-size: 21px
line-height: 44px
font-weight: normal
margin-bottom: 26px
margin-bottom: 21px
h2 .signature,
span.signature
font-size: 75% !important
opacity: 0.7 !important
header p
font-size: 20px

Expand Down
3 changes: 2 additions & 1 deletion styles/components/sidebar.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.sidebar
padding-bottom: 120px
a
color: $grey
color: #000000
overflow-wrap: break-word
&:hover, &.active
color: $red-active
Expand All @@ -20,6 +20,7 @@
color: #000
font-size: 20px
margin-top: 40px
font-weight: bold

#sidebarNav.sticky
right: 0
Expand Down
2 changes: 1 addition & 1 deletion tmpl/layout.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(env.conf.templates && env.conf.templates.betterDocs) {
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Muli:100,400,700|Oswald:300|Inconsolata,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Muli:100,400,700|Inconsolata,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
Expand Down

0 comments on commit b686b33

Please sign in to comment.