Giter Club home page Giter Club logo

acyort's Introduction

AcyOrt

A Node.js static website framework.

Install

$ npm i acyort -g

Documentation

To check out the docs, visit https://acyort.js.org

Development

Install

$ pnpm i

Packages

  • @acyort/i18n
  • @acyort/markdown
  • acyort
  • @acyort/paginator
  • @acyort/pigeon

add

$ pnpm i -D devDependency/local-package --filter package-name
$ pnpm i -S dependency/local-package --filter package-name

# global
$ pnpm i -wD devDependency
$ pnpm i -w dependency

remove

$ cd packages/name && pnpm un dependency/devDependency

# global
$ pnpm un dependency/devDependency -w

Lint

$ pnpm run lint

Test

config: jest.config.js, projects

$ pnpm run test

Build

$ pnpm run build

Script

$ cd packages/name && pnpm run script

# or
$ pnpm -C packages/name run script

acyort's People

Contributors

loeify avatar zwingz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acyort's Issues

Encountered A build question

build以后出现了如下错误:
Data from cache...
Getting data from GitHub (willhunger/willhunger.github.io) ... 1
✖ No contents

然后acrort server 后出现的页面信息是404

中文测试

善我王上魚、產生資西員合兒臉趣論。畫衣生這著爸毛親可時,安程幾?合學作。觀經而作建。都非子作這!法如言子你關!手師也。

以也座論頭室業放。要車時地變此親不老高小是統習直麼調未,行年香一?

就竟在,是我童示讓利分和異種百路關母信過明驗有個歷洋中前合著區亮風值新底車有正結,進快保的行戰從:弟除文辦條國備當來際年每小腳識世可的的外的廣下歌洲保輪市果底天影;全氣具些回童但倒影發狀在示,數上學大法很,如要我……月品大供這起服滿老?應學傳者國:山式排只不之然清同關;細車是!停屋常間又,資畫領生,相們制在?公別的人寫教資夠。資再我我!只臉夫藝量不路政吃息緊回力之;兒足灣電空時局我怎初安。意今一子區首者微陸現際安除發連由子由而走學體區園我車當會,經時取頭,嚴了新科同?很夫營動通打,出和導一樂,查旅他。坐是收外子發物北看蘭戰坐車身做可來。道就學務。

國新故。

工步他始能詩的,裝進分星海演意學值例道……於財型目古香亮自和這乎?化經溫詩。只賽嚴大一主價世哥受的沒有中年即病行金拉麼河。主小路了種就小為廣不?

Time and disqus questions

  • 文章的时间问题
    就是当一个issue已经被build以后,下一次更新issue以后再build,文章的时间显示为第二次生成的时间。
    我的建议是在配置文件中提供两种时间供选择,选择是第一次发表时间还是更新时间为时间标准。

  • disqus反向代理
    https://github.com/ciqulover/disqus-proxy

[about]for page test

Regulaere Ausdruecke werden verwendet, um gleichartige Muster in Zeichenketten zu erkennen.

Anwendungsfaelle:

  • Suche nach Zeichenketten anhand eines Musters
  • Pruefung, ob eine Zeichenkette einem Muster entspricht
  • Ersetzen von Vorkommen einer Zeichenkette mit einer Alternative

GREP

grep ist ein Werkzeug, das Dateien oder Texte nach dem Vorkommen von Mustern durchsucht. Es verwendet hierfuer regulaere Ausdruecke.

Syntax

grep <regex> <files>

Literals

Die einfachste Form eines regulaeren Ausdrucks ist der 'literal match'.

text.txt:

ausdruck
Ausdruck
ausdruk
aus-druck

---


grep ausdruck text.txt

ausdruck

Es gibt allerdings eine Reihe von Zeichen, die eine besondere Bedeutung in regulaeren Ausdruecken haben. Diese muessen fuer den Gebrauch als literal mit \ escaped werden.

Wildcard .

Der . gilt als sogenannte Wildcard, d.h. er trifft auf jedes beliebige Zeichen zu. Er matched dabei auf genau EIN Zeichen.

text.txt

Test
Tesst
Text
Texst
Te5t
Te#t
Tet
Te t
Te+t

---


grep Te.t text.txt

Test
Text
Te5t
Te#t
Te t
Te+t

Zeichenklassen

In [eckigen Klammern] koennen mehrere gueltige Zeichen angegeben werden. Wie die Wildcard matched auch dieser Ausdruck nur auf ein einzelnes Zeichen.

text.txt

Test
Tect
Tet
Text
Texst
Texxt

---


grep "Te[xs]t" text.txt

Test
Text

A Great Story Never Told

I’ve never told this to anyone. Sit yourself down and strap yourself in, you will experience some turbulence before you reach a steady altitude.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam nihil eum cum quas! Consectetur aliquam molestias quos voluptatum recusandae accusantium eaque sed architecto esse. Ut obcaecati, porro numquam sed. Odio.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse quam provident accusamus vero autem culpa illum quo enim maiores eius error, sapiente inventore cum hic earum. Libero porro quisquam harum.

  • Mercury
  • Venus
  • Earth (Orbit/Moon)
  • Mars
  • Jupiter
  • Saturn
  • Uranus
  • Neptune
  • Comet Haley

iceland

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam nihil eum cum quas! Consectetur aliquam molestias quos voluptatum recusandae accusantium eaque sed architecto esse. Ut obcaecati, porro numquam sed. Odio.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse quam provident accusamus vero autem culpa illum quo enim maiores eius error, sapiente inventore cum hic earum. Libero porro quisquam harum.

访问错误

按照项目构建成功了,1)如何访问,我看gh-pages有更新,但是访问提示错误。2)每次master分支构建完成后,又自动构建gh-pages 分支,gh-pages提示错误。谢谢

CSS with Superpowers

Sass is completely compatible with all versions of CSS. We take this compatibility seriously, so that you can seamlessly use any available CSS libraries.

Sass boasts more features and abilities than any other CSS extension language out there. The Sass Core Team has worked endlessly to not only keep up, but stay ahead.

Mature
Sass has been actively supported for about 8 years by its loving Core

Team
Over and over again, the industry is choosing Sass as the premier CSS extension language.

Large Community
Sass is actively supported and developed by a consortium of several tech companies and hundreds of developers.

Frameworks
There are endless number of frameworks built with Sass. Compass, Bourbon, and Susy just to name a few.

Dreamcatcher cold-pressed American Apparel, post-ironic Carles Shoreditch craft beer Banksy PBR retro distillery before they sold out freegan asymmetrical kogi. Food truck Schlitz direct trade, deep v ethical yr sriracha mumblecore freegan. Tattooed occupy pork belly, letterpress typewriter cold-pressed viral swag farm-to-table flexitarian. +1 hashtag put a bird on it authentic. 3 wolf moon locavore Vice, normcore actually meggings leggings cornhole brunch. Four loko vinyl trust fund, Intelligentsia wolf Bushwick lo-fi sriracha. Deep v vegan forage selvage.

View More Test

In my previous post many were telling me I was missing the point about task runners - they're for wiring up complex sets of tasks, not just running odd tasks. So I thought I'd wrap up this piece with a complex set of tasks typical of a multi-hundred-line Gruntfile. For this example I want to do the following:

  "scripts": {
    "clean": "rimraf dist/*",

    "prebuild": "npm run clean -s",
    "build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
    "build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}'",
    "build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}'",
    "build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",

    "test": "karma start --singleRun",

    "watch": "parallelshell 'npm run watch:test -s' 'npm run watch:build -s'",
    "watch:test": "karma start",
    "watch:build": "nodemon -q -w assets/ --ext '.' --exec 'npm run build'",

    "open:prod": "opener http://example.com",
    "open:stage": "opener http://staging.example.internal",
    "open:dev": "opener http://localhost:9090",

    "deploy:prod": "s3-cli sync ./dist/ s3://example-com/prod-site/",
    "deploy:stage": "s3-cli sync ./dist/ s3://example-com/stage-site/",

    "serve": "http-server -p 9090 dist/",
    "live-reload": "live-reload --port 9091 dist/",

    "dev": "npm run open:dev -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'"
  }

Support to change the post date

All the post time will be the same after migrate old blog to issues blog.
hope to overwrite the post time by add something like

// create_at: YYYY-mm-DD HH:MM:SS

on the top of the post.

circleci 构建错误

Exit code: 1
#!/bin/bash -eo pipefail
cp config.bak.yml config.yml
cp: cannot stat 'config.bak.yml': No such file or directory
Exited with code 1

Mission

todo

  • ignore rss output when no set rss
  • server livereload
  • module test
  • Archives paging
  • get image size log
  • local test json
  • cache image size
  • themes get config meta info
  • use id as path

bug:

  • server: url path cannot get index.html
  • server: chinese 404
  • themes: layout.html miss <html> tag
  • themes: post thumb src error when set thumb_size: true
  • dev mode script insert ignore js/css/image

ignore

JSON output
theme config
hightlight.js to prismjs / line number

timezone设置不生效

作者你好:
今天偶然发现博客的时区设置好像不生效,操作如下:

# 在config.yml中,把时区从上海,改到纽约
timezone: America/New_York

看自动构建的日志的最后一步:

git commit -m "Updated by CircleCI - `TZ='Asia/Shanghai' date`"

On branch gh-pages
Your branch is up-to-date with 'origin/gh-pages'.
nothing to commit, working directory clean
Exited with code 1

这是说明文件都没有被修改,所以猜测可能是时区设置未生效。

还有就是生成的博客时间感觉像是UTC时间,跟当前时间差了大概八小时左右,例如下面这篇文章,是今天十点左右更新的。

https://wuzehui.top/posts/352966584.html

博客项目地址:
https://github.com/wuzehv/blog2

麻烦帮忙看看, 谢谢 :)

[可以复现]✖ TypeError: Cannot read property 'split' of null

我的github issues 地址:https://github.com/ly525/blog/issues
运行acyort build 到第11篇的时候,每次都会挂掉,麻烦帮忙看下,感谢🙏

i Use script: content.js
i Use script: active.js
i Getting data from GitHub (ly525/blog) ... 1
i Getting data from GitHub (ly525/blog) ... 2
i Getting data from GitHub (ly525/blog) ... 3
i Getting data from GitHub (ly525/blog) ... 4
i Getting data from GitHub (ly525/blog) ... 5
i Getting data from GitHub (ly525/blog) ... 6
i Getting data from GitHub (ly525/blog) ... 7
i Getting data from GitHub (ly525/blog) ... 8
i Getting data from GitHub (ly525/blog) ... 9
i Getting data from GitHub (ly525/blog) ... 10TypeError: Cannot read property 'split' of null
    at excerpt (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/lib/excerpt.js:3:25)
    at Object.post (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/lib/post.js:21:32)
    at posts.map (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/index.js:62:25)
    at Array.map (<anonymous>)
    at Object.processor (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/[email protected]@acyort-processor/index.js:61:17)
    at extend.init.then.then.then.then.data (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/lib/acyort.js:113:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

config.yml

# Base

# site
title: 前端农场
description: 博客、分享、资源、源码

# url
# url of website. format like http://<domain>/<path> or https://<domain>
url:

# theme
# default is ccc45
theme:

# pagination
# post count per page. set 0 to disable it
# default is 10
per_page: 10

# menu
# navigation menus of website
menu:
  home: /
  categories: /categories/
  tags: /tags/
  about: /about/

# default category name
# default is "uncategorized"
default_category: blog

# content
# GitHub user/repository
# website contents comes from this repository issues
user: ly525
repository: blog


# Advance

# scripts
# script file names
scripts:
  - content.js
  - active.js

# plugins
# npm modules
plugins:
  # - xxx module

# output
# where static site files located
public_dir: /

# authors
# Github usernames, users whose issues can be generated to post
authors:
#  - author0
#  - author1

# timezone
# website timezone. use machine setting by default
# example: "America/New_York", "Japan", "UTC", or "Asia/Shanghai"
timezone:

# language
# language of website, theme support is needed
# default is default
language:

# code line numbers
# whether showing line numbers in code block
# default is true
line_numbers:

# order
# post ordering, order posts by issues create_time(created) or update_time(updated)
# default is created
order:

# directory
# subdirectory in public_dir
# default is categories, tags, posts
category_dir:
tag_dir:
post_dir:

# token
# github access token
# In order to prevent the token from removed by github, you should add a # inside it
# for example the original token abcdedf should be replaced with a#bcdef.
token:

# cache
# whether caching GitHub issues data, just for development
# default false
cache:

# Other
# customize some settings if necessary

# disqus:
# favicon:

配置起来有点困难…

没搞定,circleci出错了好多……
最后按着示例博客里的配置…… 并且把几条删除文件夹的命令,因为文件夹不存在报错了,移除掉才勉强跑通,最后也没build出index.html

所以public里面到底装了啥…… 示例博客忽略了没上传

地址: https://github.com/zhangyu921/blog-acyort

toc有些问题

我在搭建博客的时候发现一个问题,toc目录和正文会重叠,在chrome里不会出现,在Microsoft Edge里会出现。

截图:
image

2.3.0

  • wp_head(), wp_footer()
  • Marked table render error
  • code preview support

No such file or directory : default.yml

When I trigger travis-ci build, I find these logs for error.

{ Error: ENOENT: no such file or directory, open '/home/travis/build/willhunger/Blog/themes/donob/i18n/default.yml'
    at Error (native)
    at Object.fs.openSync (fs.js:634:18)
    at Object.fs.readFileSync (fs.js:502:33)
    at Helper.resetLocales (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/helper/index.js:36:41)
    at Generator.genHtmls (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/index.js:47:18)
    at Generator.generate (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/index.js:107:19)
    at _fetcher.fetch.then.then.data (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/acyort.js:17:35)
    at process._tickCallback (internal/process/next_tick.js:103:7)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/travis/build/willhunger/Blog/themes/donob/i18n/default.yml' }

But build exited with 0.
How to deal with it?

Markdown Cheatsheet

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or underscores.

Combined emphasis with asterisks and underscores.

Strikethrough uses two tildes. Scratch this.

  1. First ordered list item
  2. Another item
    ⋅⋅* Unordered sub-list.
  3. Actual numbers don't matter, just that it's a number
    ⋅⋅1. Ordered sub-list
  4. And another item.

⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

  • Unordered list can use asterisks
  • Or minuses
  • Or pluses

I'm an inline-style link

I'm an inline-style link with title

[I'm a reference-style link][Arbitrary case-insensitive reference text]

I'm a relative reference to a repository file

Here's our logo (hover to see the title text):

Inline-style:
alt text

Reference-style:
alt text

var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.

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.