浏览代码

Add news and improve docs

zhixin 7 年之前
父节点
当前提交
46c25545b7

+ 5 - 1
_config.yml

@@ -25,11 +25,15 @@ plugins:
 # Custom variables
 current_version:  1.13.1
 title:            "Bootstrap Table"
-description:      "An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features."
+description:      "An extended Bootstrap Table with radio, checkbox, sort, pagination, and other added features."
+authors:          "Zhixin Wen, and Bootstrap Table contributors"
+keywords:         "table, bootstrap, bootstrap plugin, bootstrap resources, bootstrap table, jQuery plugin"
 repo:             https://github.com/wenzhixin/bootstrap-table
 website:          http://wenzhixin.net.cn
 repos:            http://repos.wenzhixin.net.cn
 email:            wenzhixin2010@gmail.com
+twitter:          wenzhixin2010
+opencollective:   bootstrap-table
 master_zip:       https://github.com/wenzhixin/bootstrap-table/archive/master.zip
 
 toc:

+ 7 - 2
site/_includes/docs-navbar.html

@@ -26,6 +26,11 @@
           Donate
         </a>
       </li>
+      <li class="nav-item">
+        <a class="nav-link" href="{{ site.baseurl }}/news">
+          News
+        </a>
+      </li>
     </ul>
   </div>
 
@@ -41,12 +46,12 @@
       </a>
     </li>
     <li class="nav-item">
-      <a class="nav-link p-2" href="{{ site.opencollective }}/" target="_blank" rel="noopener" aria-label="Open Collective">
+      <a class="nav-link p-2" href="https://opencollective.com/{{ site.opencollective }}" target="_blank" rel="noopener" aria-label="Open Collective">
         {%- include icons/opencollective.svg class="navbar-nav-svg" -%}
       </a>
     </li>
   </ul>
 
   <a class="btn btn-bd-download d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3"
-    href="{{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/download/">Download</a>
+    href="{{ site.baseurl }}/docs/getting-started/download/">Download</a>
 </header>

+ 8 - 3
site/_includes/docs-sidebar.html

@@ -1,6 +1,11 @@
 <form class="bd-search d-flex align-items-center">
-  <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-docs-version="{{ site.docs_version }}">
-  <button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
+  <input type="search" class="form-control"
+    id="search-input" placeholder="Search..."
+    aria-label="Search for..." autocomplete="off">
+  <button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3"
+    type="button" data-toggle="collapse" data-target="#bd-docs-nav"
+    aria-controls="bd-docs-nav" aria-expanded="false"
+    aria-label="Toggle docs navigation">
     {%- include icons/menu.svg width="30" height="30" -%}
   </button>
 </form>
@@ -18,7 +23,7 @@
   {%- endif -%}
 
   <div class="bd-toc-item{% unless active == nil %} {{ active }}{% endunless %}">
-      <a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}">
+      <a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}">
         {{ group.title }}
       </a>
 

+ 1 - 1
site/_includes/footer.html

@@ -2,7 +2,7 @@
   <div class="container-fluid p-3 p-md-5">
     <ul class="bd-footer-links">
       <li><a href="{{ site.repo }}">GitHub</a></li>
-      <li><a href="https://twitter.com/wenzhixin2010">Twitter</a></li>
+      <li><a href="https://twitter.com/{{ site.twitter }}">Twitter</a></li>
       <li><a href="{{ site.website }}">My website</a></li>
       <li><a href="{{ site.repos }}">My repos</a></li>
       <li><a href="http://stackoverflow.com/questions/tagged/bootstrap-table">Questions / Helps</a></li>

+ 2 - 2
site/_includes/header.html

@@ -3,9 +3,9 @@
 <meta name="description" content="{{ page.description | default: site.description | smartify }}">
 <meta name="author" content="{{ site.authors }}">
 <meta name="generator" content="Jekyll v{{ jekyll.version }}">
+<meta name="keywords" content="{{ site.keywords }}">
 
 <meta name="docsearch:language" content="en">
-<meta name="docsearch:version" content="{{ site.docs_version }}">
 
 <title>
   {%- if page.title -%}
@@ -20,6 +20,6 @@
 {% include analytics.html %}
 
 <script type="text/javascript">
-  if (window!=top) // 判断当前的window对象是否是top对象
+  if (window !== top) // 判断当前的window对象是否是top对象
     top.location.href = window.location.href // 如果不是,将top对象的网址自动导向被嵌入网页的网址
 </script>

+ 0 - 3
site/_layouts/simple.html

@@ -6,9 +6,6 @@ layout: default
   <div class="pt-md-3 pb-md-4">
     <h1 class="bd-title mt-0">{{ page.title | smartify }}</h1>
     <p class="bd-lead">{{ page.description | smartify }}</p>
-    {%- if page.title == "Examples" -%}
-    <a href="{{ site.download.source }}" class="btn btn-lg btn-bd-primary" onclick="ga('send', 'event', 'Examples', 'Hero', 'Download');">Download source code</a>
-    {%- endif -%}
   </div>
   {% include ads.html %}
 </header>

+ 7 - 0
site/assets/css/style.css

@@ -27,3 +27,10 @@
 .donate .btn-primary {
   margin-top: 75px;
 }
+
+.post-date {
+  display: block;
+  margin-top: -.5rem;
+  margin-bottom: 1rem;
+  color: #767676;
+}

+ 1 - 1
site/docs/getting-started/introduction.md

@@ -100,6 +100,6 @@ Bootstrap Table requires the use of the HTML5 doctype. Without it, you'll see so
 
 Stay up to date on the development of Bootstrap Table and reach out to the community with these helpful resources.
 
-- Follow [@wenzhixin2010 on Twitter](https://twitter.com/wenzhixin2010).
+- Follow [@{{ site.twitter }} on Twitter](https://twitter.com/{{ site.twitter }}).
 - Read [The Official Bootstrap Table News]({{ site.news }}/).
 - Implementation help may be found at Stack Overflow (tagged [`bootstrap-table`](https://stackoverflow.com/questions/tagged/bootstrap-table)).

+ 1 - 1
site/index.html

@@ -16,7 +16,7 @@ layout: home
           {{ site.description }}
         </p>
         <p class="lead mb-4">
-          Bootstrap table has been designed to reduce development time and to require no specific knowledge from developers. It is both featherweight and feature-rich.
+          Bootstrap Table has been designed to reduce development time and to require no specific knowledge from developers. It is both featherweight and feature-rich.
         </p>
         <div class="row mx-n2">
           <div class="col-md px-2">

+ 55 - 0
site/news.md

@@ -0,0 +1,55 @@
+---
+layout: simple
+title: News
+description: News and announcements for all things Bootstrap Table, including new releases.
+---
+
+## Bootstrap Table 1.13.1
+
+<span class="post-date">01 Jan 2019</span>
+
+- **New(js):** Added `theadClasses` option to supoort bootstrap v4.
+- **New(js):** Updated the default icons to font-awesome 5.
+- **New(locale):** Rewrited all locales to ES6.
+- **New(editable extension):** Rewrited `bootstrap-table-editable` to ES6.
+- **New(filter-control extension):** Rewrited `bootstrap-table-filter-control` to ES6.
+- **New(treegrid extension):** Added `rootParentId` option.
+- **Update(js):** Fixed `getHiddenRows` method bug.
+- **Update(js):** Fixed `getOptions` method to remove data property.
+- **Update(js):** Fixed no matches display error.
+- **Update(js):** Fixed eslint warning and error.
+- **Update(locale):** Improved `es-ES` locale.
+- **Update(filter-control extension):** Fixed multiple choice bug.
+- **Update(filter-control extension):** Fixed select all rows and `keyup` event error.
+- **Update(export extension):** Fixed export in cardView display error.
+
+
+## Bootstrap Table 1.13.0
+
+<span class="post-date">27 Dec 2019</span>
+
+- **New(js):** Rewrited bootstrap-table to ES6.
+- **New(locale):** Added `fi-FI.js` locale.
+- **New(build):** Used babel instead of grunt.
+- **New(filter-control):** Added `created-controls.bs.table` event to filter-control.
+- **New(export extension):** Rewrited export extension to ES6.
+- **New(export extension):** Added export extension support bootstrap v4.
+- **New(export extension):** Added `exportTable` method.
+- **New(toolbar extension):** Rewrited toolbar extension to ES6.
+- **New(toolbar extension):** Added toolbar extension supports bootstrap v4.
+- **New(toolbar extension):** Added server sidePagination support
+- **New(resizable extension):** Released new resizable extension version 2.0.0.
+- **New(editable extension):** Allowed different x-editable configuration per table row.
+- **New(addrbar extension):** Added addrbar extension.
+- **Update(js):** Improved `check/uncheck` methods
+- **Update(js):** Fixed cookie with `pageNumber` and `searchText` bug.
+- **Update(js):** Fix `selections` bugs.
+- **Update(js):** Added `customSearch` support data attribute.
+- **Update(js):** Fixed can't search data with formatter.
+- **Update(js):** Fixed `getRowByUniqueId` error when row unique id is undefined.
+- **Update(js):** Fxied older bootstrap version bug.
+- **Update(css):** Removed toolbar line-height.
+- **Update(css):** Limitted fullscreen CSS rule scope.
+- **Update(editable extension):** Fixed editable formatter bug.
+- **Update(extension):** Fixed bug with export extension together.
+- **Update(extension):** Removed click-edit-row and flat-json extensions.