Giter Club home page Giter Club logo

book's People

Contributors

happypeter avatar youngjingwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mba811 yafey

book's Issues

eslintrc

gatsby 下如何写配置呢?

fix warnings

lowPriorityWarning.js:38 Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in  React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs
printWarning @ lowPriorityWarning.js:38
lowPriorityWarning @ lowPriorityWarning.js:57
get @ React.js:98
_interopRequireWildcard @ Input.js:47
./node_modules/antd/lib/input/Input.js @ Input.js:33
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
./node_modules/antd/lib/input/index.js @ index.js:7
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
./src/pages/index.js @ index.js:63
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
./.cache/sync-requires.js @ sync-requires.js:13
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
./.cache/root.js @ root.js:6
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
(anonymous) @ app.js:37
Promise resolved (async)
./.cache/app.js @ app.js:15
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
fn @ bootstrap 613e83a7ea8d24ff14af:86
0 @ index.js:176
__webpack_require__ @ bootstrap 613e83a7ea8d24ff14af:555
./node_modules/ansi-html/index.js.module.exports @ bootstrap 613e83a7ea8d24ff14af:578
(anonymous) @ bootstrap 613e83a7ea8d24ff14af:578
lowPriorityWarning.js:38 Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

run build 报错

pathContext.. { bookId: 'js-monkey' }

error Building static HTML for pages failed

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND

  17 |         </Side>
  18 |         <Page>
> 19 |           <Title>{episode.title}</Title>
     |                           ^
  20 |           <Main dangerouslySetInnerHTML={{ __html: ep.html }} />
  21 |         </Page>
  22 |       </Content>


  WebpackError: Cannot read property 'title' of undefined

添加 Header

显示一个指向首页的链接和一个本书目录页的链接即可

导航调整

链接格式:

  • / 首页
  • /git-beijing 书目录页
  • /git-beijing/1 每节详情页

每节详情页

导航栏目前还不工作

导航栏

小节页面的小节导航栏目前还不工作,参考 reactjs.org 来做。

color theme

暂时使用

import 'prismjs/themes/prism-okaidia.css'

小节详情页,文字稿宽度

每行文字控制在40个。
所以文字稿宽度就控制在 680px ,其中核心文字区域的宽度大概是 620px ,然后左右各留30像素的 padding 。

这个首先要体现在设计图上。

随时可编辑

书稿出来后,要随时动手可以做微小的添加和调整

所以内容就要直接放到 github 仓库中。最好直接我修改后,就能实时进行编译。要不试试 netlify ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.