我已经安装了这个jekyll主题.但面临一个问题.
如果我做:
bundle exec jekyll serve
Run Code Online (Sandbox Code Playgroud)
一切正常(_site文件夹包含必要的文件和服务器正在运行),但如果我使用以下命令:
jekyll build -d /var/www/budka/data/www/blog
Run Code Online (Sandbox Code Playgroud)
我收到错误:
依赖性错误:哎呀!看起来你没有安装jekyll-paginate或其中一个依赖项.为了使用当前配置的Jekyll,您需要安装此gem.来自Ruby的完整错误消息是:'无法加载此类文件 - jekyll-paginate'如果遇到麻烦,可以在http://jekyllrb.com/help/找到有用的资源 !
jekyll 3.1.1 | 错误:jekyll-paginate
我试图解决这个问题,但没有成功.现在Gemfile文件包含:
source 'http://rubygems.org'
gem 'github-pages'
gem 'html-proofer'
gem "jekyll"
gem 'jekyll-paginate'
gem "pygments.rb"
Run Code Online (Sandbox Code Playgroud)
jekyll-paginate (1.1.0)gem已安装,因为我在gem listcommnad中看到它:
*** LOCAL GEMS ***
actionmailer (4.2.5)
actionpack (4.2.5)
actionpack-action_caching (1.1.1)
actionpack-xml_parser (1.0.2)
actionview (4.2.5)
activejob (4.2.5)
activemodel (4.2.5)
activerecord (4.2.5)
activesupport (4.2.5.1, 4.2.5)
addressable (2.4.0, 2.3.8)
arel (6.0.3)
awesome_nested_set (3.0.3)
bigdecimal (1.2.4)
builder (3.2.2)
bundler …Run Code Online (Sandbox Code Playgroud) 我有lib HighCharts 的图表,我想在我写的图表上删除yAxis的网格线,gridLineWidth: 0
但网格线没有删除所有代码:
<script type="text/javascript">
(function($){ // encapsulate jQuery
$(function() {
Highcharts.setOptions({
lang: {
rangeSelectorZoom: '??c????',
rangeSelectorFrom: '??',
rangeSelectorTo: '??',
thousandsSep: ' '
},
global: {
useUTC: false
}
});
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(data) {
// Create the chart
window.chart = new Highcharts.StockChart({
chart : {
borderColor: 'white',
renderTo : <?php echo "cont".$i; ?>,
backgroundColor: '#f9f9f9' // ??????? ?????? ????? ???
},
rangeSelector: {
buttons: [
{
type: 'week',
count: 1,
text: '??????',
},
{
type: 'month', …Run Code Online (Sandbox Code Playgroud) 我有一个页面
按下按钮后,你会看到lib jquery.knob.js(circle)的元素我想要改变圆圈大小,我写了这段代码:
<div style="float:left; width:255px; height:155px">
<input class="knob" data-fgColor="#9dc806" data-cgColor="black" data-bgColor="#7d7d7d" data-tickColor="black" data-thickness=".25" data-readOnly=true value="<?php echo $percent; ?>">
</div>
Run Code Online (Sandbox Code Playgroud)
但如果我改变div的宽度和高度,圆圈尺寸不会改变?
pb.php的所有代码页:
<?php
header('Content-Type: text/html; charset=utf-8');
include '../connect.php';
include '../ProcessingMySQL.php';
$mysqli = new ProcessingMySQL($hostname, $user_name, $password, $db_name);
$site = $_POST['sites'];
$percent = $mysqli->getPercentTopQuery($site);
?>
<html>
<head>
<style type="text/css">
.knob{color:#000000 !important;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="js/jquery.knob.js"></script>
<script>
$(function() {
$(".knob").knob();
var val,up=0,down=0,i=0
,$idir = $("div.idir")
,$ival = $("div.ival")
,incr = function() { i++; $idir.show().html("+").fadeOut(); $ival.html(i); }
,decr = function() { …Run Code Online (Sandbox Code Playgroud) 我正在尝试配置 eslint + babel-eslint + eslint-plugin-react + eslint-plugin-flowtype
我有以下devDependencies的package.json:
"babel-eslint": "^7.1.1",
"eslint": "^3.10.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-flowtype": "^2.25.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.7.1"
Run Code Online (Sandbox Code Playgroud)
以下内容.eslinrc:
{
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"rules": {
"max-len": [1, 80, 2, {"ignoreComments": true}],
"prop-types": [0],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": [
0,
{
"ignorePureComponents": true
}
],
"no-console": 0
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}
Run Code Online (Sandbox Code Playgroud)
我写了一个简单的代码示例 …
我改变了导航器线上的颜色:颜色:'rgba(255, 255, 255, 0.00)'
我改变了线条的颜色:lineColor: 'red'
这是我的图表
但我不能改变导航器线下的颜色:ScreenShot
导航器的所有代码:
navigator: {
maskFill: 'rgba(255, 255, 255, 0.45)',
series: {
type: 'areaspline',
color: 'rgba(255, 255, 255, 0.00)',
fillOpacity: 0.4,
dataGrouping: {
smoothed: false
},
lineWidth: 2,
lineColor: 'red',
marker: {
enabled: false
},
shadow: true
},
yAxis: {
reversed: true
}
}
Run Code Online (Sandbox Code Playgroud) highcharts ×2
javascript ×2
eslint ×1
flowtype ×1
github-pages ×1
highstock ×1
jekyll ×1
jquery ×1
ruby ×1
rubygems ×1