浏览代码

Black-white logo and search for docs site

DarthSim 5 年之前
父节点
当前提交
fafe99362d
共有 3 个文件被更改,包括 8 次插入3 次删除
  1. 0 0
      docs/assets/logo.svg
  2. 1 1
      docs/generating_the_url_advanced.md
  3. 7 2
      docs/index.html

文件差异内容过多而无法显示
+ 0 - 0
docs/assets/logo.svg


+ 1 - 1
docs/generating_the_url_advanced.md

@@ -141,7 +141,7 @@ When imgproxy needs to cut some parts of the image, it is guided by the gravity.
 
 Default: `ce:0:0`
 
-##### Special gravities:
+**Special gravities**:
 
 * `gravity:sm` - smart gravity. `libvips` detects the most "interesting" section of the image and considers it as the center of the resulting image. Offsets are not applicable here;
 * `gravity:fp:%x:%y` - focus point gravity. `x` and `y` are floating point numbers between 0 and 1 that define the coordinates of the center of the resulting image. Treat 0 and 1 as right/left for `x` and top/bottom for `y`.

+ 7 - 2
docs/index.html

@@ -17,15 +17,20 @@
   </div>
   <script>
     window.$docsify = {
-      name: '<img style="width:80%" title="imgproxy logo" src="https://cdn.rawgit.com/DarthSim/imgproxy/master/logo.svg" >',
+      name: '<img style="width:90%" title="imgproxy logo" src="/assets/logo.svg" >',
       repo: 'https://github.com/imgproxy',
       loadSidebar: true,
       subMaxLevel: 2,
-      auto2top: true
+      auto2top: true,
+      search: {
+        namespace: 'docs-imgproxy',
+        depth: 6
+      }
     }
   </script>
   <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
   <script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0"></script>
+  <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
   <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
 </body>
 </html>

部分文件因为文件数量过多而无法显示