Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruction #517

Merged
merged 2 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ setup: install
npx simple-git-hooks

install:
bundle install
npm ci

serve:
bundle exec jekyll serve --incremental --limit_posts 2
npm run start

lint:
bundle exec rubocop

lint-fix:
bundle exec rubocop -A
build:
npm run build

generate-githubpages:
SSL=true bundle exec jekyll build
lint:
npm run lint
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ Theme https://github.com/wowthemesnet/affiliates-jekyll-theme

```sh
make setup
make build
make serve
# open localhost:4000
# open localhost:3000
```

## Development
## New post

```sh
# generate css for highlighting
bundle exec rougify style github > assets/css/highlight.css
```
- Add post in locale by path **next-app/data/posts**
-

---

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
"description": "Guides",
"main": "index.js",
"scripts": {
"build": "cd next-app && npm run build",
"start": "cd next-app && npm run start",
"heroku-prebuild": "cd next-app && npm ci",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "npm --prefix next-app run build",
"start": "npm --prefix next-app run start",
"heroku-prebuild": "npm --prefix next-app ci",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npm --prefix next-app run lint"
},
"repository": {
"type": "git",
Expand Down