New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

document

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

document - npm Package Compare versions

Comparing version
0.4.3
to
0.4.4
+2
doc/zh-CN/01_getting-started.md
# 新手上路
+12
-2
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');

@@ -14,6 +15,15 @@ grunt.initConfig({

}
}
},
watch: {
scripts: {
files: ['theme/public/less/**/*.less'],
tasks: ['less'],
options: {
nospawn: true
},
},
},
});
grunt.registerTask('default', ['less']);
grunt.registerTask('default', ['less', 'watch']);
}
+7
-3

@@ -149,4 +149,4 @@ 'use strict';

lang.each(languages, function (name, language) {
var root_tree = root[language] || {};
delete root_tree.parent;
var ltree = root[language] || {};
delete ltree.parent;

@@ -157,4 +157,8 @@ // It's hard to detect the closest match if user had a wrong configuration

name: name,
tree: root_tree
tree: ltree
};
ltree.language = language;
ltree.language_text = name;
});

@@ -161,0 +165,0 @@

{
"name": "document",
"version": "0.4.3",
"version": "0.4.4",
"description": "Create your document site with just one command.",

@@ -40,4 +40,5 @@ "// main": "index.js",

"grunt": "~0.4.1",
"grunt-contrib-less": "~0.7.0"
"grunt-contrib-less": "~0.7.0",
"grunt-contrib-watch": "~0.5.3"
}
}

@@ -82,2 +82,3 @@ [![NPM version](https://badge.fury.io/js/document.png)](http://badge.fury.io/js/document)

- Programmatical APIs.
- Watcher support so that you can uodate your documents without restarting your server.

@@ -84,0 +85,0 @@

@@ -10,14 +10,20 @@ <% include header %>

<a class="brand pull-left" href="<%= config.site_root %>"><%= config.title %></a>
<% if (config.languages) {
var l;
var text;
for (l in config.languages) {
text = config.languages[l];
}
%><p class="navbar-text pull-right">
<a href="<%= config.site_root %>/<%= l %>"><%= text %></a>
</p><%
}
%>
<div class="dropdown navbar-text pull-right">
<% if (config.languages) {
%><a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= tree.language_text %> <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu"><%
var l;
var text;
for (l in config.languages) {
text = config.languages[l];
var li_class = l === tree.language ? ' class="disabled"' : '';
%><li<%- li_class %>>
<a href="<%= config.site_root %>/<%= l %>"><%= text %></a>
</li><%
}
%></ul><%
} %>
</div>
</div>

@@ -24,0 +30,0 @@ </div>

@@ -68,5 +68,23 @@ //Mixins, cuz they're handy

}
h1 {
font-family: 'Roboto Slab', 'Hiragino Sans GB', 'STHeiti', 'Microsoft YaHei', sans-serif;
font-size: 50px;
line-height: 54px;
margin-bottom: 20px;
padding: 10px 0;
display: block;
border-bottom: 1px solid @lines;
@media (max-width: 767px) {
font-size: 38.5px;
line-height: 40px;
}
}
a {
}
}
pre {

@@ -399,3 +417,3 @@ padding: 0;

border-bottom: none;
padding: 6px 20px;
padding: 0 20px;
.brand {

@@ -405,4 +423,6 @@ color: @light;

.roboto-slab.bold;
line-height: 32px;
}
.navbar-text {
padding: 10px 0;
color: @light;

@@ -412,9 +432,26 @@ a {

}
&.dropdown {
padding: 10px 5px;
}
.dropdown-toggle {
display: block;
padding: 6px 0;
line-height: 20px;
}
.caret {
border-top-color: @light;
}
}
@media (max-width: 767px) {
padding: 6px 10px;
padding: 0 10px;
.navbar-text {
line-height: 16px;
line-height: 28px;
margin: 12px 6px;
font-size: 12px;
&.dropdown {
padding: 0 5px;
}
.dropdown-toggle {
padding: 4px 0;
}
}

@@ -421,0 +458,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display