Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Feb 22, 2018
1 parent 83be7ff commit 1bcc273
Show file tree
Hide file tree
Showing 14 changed files with 149 additions and 69 deletions.

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/css/misc.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
.md-typeset__table {
display: block!important;
}

.md-typeset__table a {
color: red;
}

/*
table {
display: table !important;
margin-left: auto;
margin-right: auto;
width: 90%;
}
*/


p img {
display: block;
Expand Down
3 changes: 3 additions & 0 deletions docs/js/mathjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ window.MathJax = {

y: "{\\mathbf{y}}",
f: "{\\mathbf{y}}",
x: "{\\mathbf{x}}",
z: "{\\mathbf{z}}",

LOG: "{\\mathrm{log}\\;}",
log: "{\\mathrm{log}\\;}",
Expand All @@ -38,6 +40,7 @@ window.MathJax = {
arg: "{\\mathrm{arg}\\;}",
max: "{\\mathrm{max}\\;}",
min: "{\\mathrm{min}\\;}",
RSS: "{\\mathrm{RSS}\\;}",

inf: "{\\mathrm{inf}}",
sign: "{\\mathrm{sign}}",
Expand Down
28 changes: 20 additions & 8 deletions material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{% elif config.site_author %}
<meta name="author" content="{{ config.site_author }}">
{% endif %}
<!--
{% if config.enable_search %}
{% for key in [
"clipboard.copy",
Expand All @@ -37,15 +38,15 @@
"search.tokenizer"
] %}
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
{% endfor %}
{% else %}
{% endfor %}
{% else %}-->
{% for key in [
"clipboard.copy",
"clipboard.copied"
] %}
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
{% endfor %}
{% endif %}
<!--{% endif %}-->
<link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}">

<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.6.0">
Expand Down Expand Up @@ -113,11 +114,15 @@
{% endif %}
</defs>
</svg>

<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="drawer">
<!--
{% if config.enable_search %}
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="search">
{% endif %}
-->
<label class="md-overlay" data-md-component="overlay" for="drawer"></label>

{% if page.toc | first is defined %}
<a href="{{ (page.toc | first).url }}" tabindex="1" class="md-skip">
{{ lang.t('skip.link.title') }}
Expand Down Expand Up @@ -193,8 +198,9 @@ <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
{% endblock %}
</div>
{% block scripts %}
{% if config.enable_search %}
<!--{% if config.enable_search %}-->
<script src="{{ base_url }}/assets/javascripts/application.js"></script>
<!--
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}
Expand All @@ -214,14 +220,20 @@ <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
<script src="{{ path }}/lunr.multi.js"></script>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
-->
<script>app.initialize({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
{% endif %}
<!--{% endif %}-->

<script>var base_url = '{{ base_url }}';</script>
{% for path in extra_javascript %}
<script>var base_url = '{{ base_url }}';</script>
<!--
{% for path in extra_javascripts %}
<script src="{{ path }}"></script>
{% endfor %}
-->
<script src="{{ base_url }}/js/mathjax.js"></script>
<script src="https://cdn.bootcss.com/mathjax/2.7.2-beta.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="{{ base_url }}/js/baiduzhanzhang.js"></script>
{% endblock %}
{% block analytics %}
{% if config.google_analytics %}
Expand Down
52 changes: 51 additions & 1 deletion material/partials/header.html
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
<header class="md-header" data-md-component="header"> <nav class="md-header-nav md-grid"> <div class="md-flex"> <div class="md-flex__cell md-flex__cell--shrink"> <a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo"> {% if config.theme.logo.icon %} <i class="md-icon">{{ config.theme.logo.icon }}</i> {% else %} <img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24"> {% endif %} </a> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--menu md-header-nav__button" for="drawer"></label> </div> <div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title"> {% block site_name %} {% if config.site_name == page.title %} {{ config.site_name }} {% else %} <span class="md-header-nav__topic"> {{ config.site_name }} </span> <span class="md-header-nav__topic"> {{ page.title }} </span> {% endif %} {% endblock %} </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> {% block search_box %} {% if "search" in config["plugins"] %} <label class="md-icon md-icon--search md-header-nav__button" for="search"></label> {% include "partials/search.html" %} {% endif %} {% endblock %} </div> {% if config.repo_url %} <div class="md-flex__cell md-flex__cell--shrink"> <div class="md-header-nav__source"> {% include "partials/source.html" %} </div> </div> {% endif %} </div> </nav></header>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo">
{% if config.theme.logo.icon %}
<i class="md-icon">{{ config.theme.logo.icon }}</i>
{% else %}
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
{% endif %}
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
{% block site_name %}
{% if config.site_name == page.title %}
{{ config.site_name }}
{% else %}
<span class="md-header-nav__topic">
{{ config.site_name }}
</span>
<span class="md-header-nav__topic">
{{ page.title }}
</span>
{% endif %}
{% endblock %}
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<!--
{% block search_box %}
{% if "search" in config["plugins"] %}
<label class="md-icon md-icon--search md-header-nav__button" for="search"></label>
{% include "partials/search.html" %}
{% endif %}
{% endblock %}
-->
</div>
{% if config.repo_url %}
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% include "partials/source.html" %}
</div>
</div>
{% endif %}
</div>
</nav>
</header>
32 changes: 18 additions & 14 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ pages:
- 文献笔记: '17 Undirected Graphical Models/Bibliographic Notes.md'

- 18 高维问题:
- 18.1 当p大于N: '18 High-Dimensional Problems/18.1 When p is Much Bigger than N.md'
- 18.2 对角线性判别分析和最近收缩重心: '18 High-Dimensional Problems/18.2 Diagonal Linear Discriminant Analysis and Nearest Shrunken Centroids.md'
- 18.3 二次正则的线性分类器: '18 High-Dimensional Problems/18.3 Linear Classifiers with Quadratic Regularization.md'
- 18.4 一次正则的线性分类器: '18 High-Dimensional Problems/18.4 Linear Classifiers with L1 Regularization.md'
- 18.5 当特征不可用时的分类: '18 High-Dimensional Problems/18.5 Classification When Features are Unavailable.md'
- 18.6 有监督的主成分: '18 High-Dimensional Problems/18.6 High-Dimensional Regression.md'
- 18.7 特征评估和多重检验问题: '18 High-Dimensional Problems/18.7 Feature Assessment and the Multiple-Testing Problem.md'
- 文献笔记: '18 High-Dimensional Problems/Bioliographic Notes.md'
- 18.1 当p大于N: '18-High-Dimensional-Problems/18.1-When-p-is-Much-Bigger-than-N.md'
- 18.2 对角线性判别分析和最近收缩重心: '18-High-Dimensional-Problems/18.2-Diagonal-Linear-Discriminant-Analysis-and-Nearest-Shrunken-Centroids.md'
- 18.3 二次正则的线性分类器: '18-High-Dimensional-Problems/18.3-Linear-Classifiers-with-Quadratic-Regularization.md'
- 18.4 一次正则的线性分类器: '18-High-Dimensional-Problems/18.4-Linear-Classifiers-with-L1-Regularization.md'
- 18.5 当特征不可用时的分类: '18-High-Dimensional-Problems/18.5-Classification-When-Features-are-Unavailable.md'
- 18.6 有监督的主成分: '18-High-Dimensional-Problems/18.6-High-Dimensional-Regression.md'
- 18.7 特征评估和多重检验问题: '18-High-Dimensional-Problems/18.7-Feature-Assessment-and-the-Multiple-Testing-Problem.md'
- 文献笔记: '18-High-Dimensional-Problems/Bioliographic-Notes.md'

- 个人笔记:
- 模拟实验:
Expand Down Expand Up @@ -252,10 +252,14 @@ extra:
- type: 'envelope'
link: 'mailto:[email protected]'

extra_javascript:
- js/mathjax.js
- 'https://cdn.bootcss.com/mathjax/2.7.2-beta.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
- js/baiduzhanzhang.js
# in order to avoid loading search.js and require.js
# ~~replace default extra_javascript with extra_javascripts~~
# disable extra_javascript

#extra_javascript:
# - js/mathjax.js
# - 'https://cdn.bootcss.com/mathjax/2.7.2-beta.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
# - js/baiduzhanzhang.js

#docs_dir: 'docs'

Expand Down Expand Up @@ -286,6 +290,6 @@ google_analytics:

use_directory_urls: false

enable_search: false
enable_search: true

plugins: []
#plugins: []

0 comments on commit 1bcc273

Please sign in to comment.