(docs) cleanup

This commit is contained in:
Alexey Kontsevoy 2018-11-02 15:55:15 -04:00
parent 23430df831
commit 0a3288b608
9 changed files with 10 additions and 18 deletions

View file

@ -8,9 +8,6 @@
cd $(dirname $0)
rm -f latest.yaml
# build css files
sass -C --precision 9 --sourcemap=none theme/src/index.scss:theme/css/teleport-bundle.css
# will be set to the latest version after the loop below
doc_ver=""
@ -29,7 +26,7 @@ ln -fs $conf_file latest.yaml
# visitors to the latest verion of QuickStart
cp index.html ../build/docs/index.html
# create a symlink to the latest
# create a symlink to the latest
cd ../build/docs
rm -f latest
ln -s $doc_ver latest

View file

@ -9,10 +9,5 @@ PORT=6600
cd $(dirname $0)
./build.sh || exit $?
trap "exit" INT TERM ERR
trap "kill 0" EXIT
sass -C --precision 9 --sourcemap=none --watch theme/src/index.scss:theme/css/teleport-bundle.css &
echo -e "\n\n----> LIVE EDIT HERE: http://localhost:$PORT/admin-guide/\n"
mkdocs serve --livereload --config-file=latest.yaml --dev-addr=0.0.0.0:$PORT & wait

View file

@ -6,7 +6,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900" />
<link rel="stylesheet" href="{{ base_url }}/assets/docs.css">
<link rel="stylesheet" href="{{ base_url }}/src/docs.css">
{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">

View file

@ -13,16 +13,16 @@
</script>
{% endif %}
<script src="{{ base_url }}/assets/prettify.js"></script>
<script src="{{ base_url }}/assets/prettify-yaml.js"></script>
<script src="{{ base_url }}/assets/docs.js"></script>
<script src="{{ base_url }}/src/prettify.js"></script>
<script src="{{ base_url }}/src/prettify-yaml.js"></script>
<script src="{{ base_url }}/src/docs.js"></script>
{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
{%- endfor %}
<script src="{{ base_url }}/assets/third-party.js"></script>
<script src="{{ base_url }}/src/third-party.js"></script>
<!-- GOOGLE CONVERSION -->
<script type="text/javascript">

View file

@ -10357,7 +10357,7 @@ var _buttons = __webpack_require__(6);
var _code = __webpack_require__(7);
var _docs = __webpack_require__(8);
var _mkdocs = __webpack_require__(8);
__webpack_require__(9);
@ -10365,15 +10365,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
// register global vars
// modules
window.getSearchTerm = _docs.getSearchTerm;
window.getSearchTerm = _mkdocs.getSearchTerm;
window.jQuery = _jquery2.default;
(0, _jquery2.default)(document).ready(function () {
new _topNav2.default();
new _secondaryNav2.default();
new _sideNav2.default({ pinned: true });
(0, _docs.handleVerSelector)();
(0, _docs.handleNavScroll)();
(0, _mkdocs.handleVerSelector)();
(0, _mkdocs.handleNavScroll)();
(0, _code.formatCodeBlocks)();
(0, _buttons.buttonRipple)();
(0, _buttons.stopDisabledButtons)();