Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
f06a258
Prepare repository to import work about Migration to VuePress 2
JulioJu Feb 16, 2021
453e108
tech: fix prettier problems
JulioJu Feb 17, 2021
19f68be
feat: init
ulivz Jun 3, 2019
fd348f1
chore: using router link for tag
ulivz Jun 3, 2019
4caa512
docs: add README
ulivz Jun 3, 2019
aa57a79
feat: update footer
ulivz Jun 3, 2019
9b65343
chore: add some line wraps
ulivz Jun 3, 2019
1e55150
chore: update github link
ulivz Jun 3, 2019
903b23d
chore: github link
ulivz Jun 3, 2019
bc34bbb
chore: readme
ulivz Jun 3, 2019
0505659
chore: readme
ulivz Jun 3, 2019
30a95fe
chore: fix typo
ulivz Jun 3, 2019
0061d9a
chore: readme
ulivz Jun 3, 2019
730a8a9
chore: tweak config
ulivz Jun 6, 2019
154d4e6
there need a </footer> tag (#2)
chenweigao Jun 6, 2019
387ab92
tech: add config files
JulioJu Feb 7, 2021
decbf49
bug: use VuePress 1 and not VuePress latest at it was defined into pa…
JulioJu Feb 7, 2021
b043d9e
tech: add eslint and prettier dependency
JulioJu Feb 7, 2021
0ec6b23
tech: `$ yarn prettier:fix`
JulioJu Feb 7, 2021
f2dccac
bug: correct syntax error into GlobalLayout.vue
JulioJu Feb 7, 2021
6e38c2d
tech: `$ yarn prettier:fix`
JulioJu Feb 7, 2021
d1a677a
tech: import tsconflig.json as defined into VuePress 2, with minor ch…
JulioJu Feb 7, 2021
ad33b06
tech: mv exemples to docs as classic VuePress folder structure
JulioJu Feb 7, 2021
4fc7007
tech: configure eslint and typescript
JulioJu Feb 7, 2021
449378a
tech: `$ yarn lint:fix`
JulioJu Feb 7, 2021
49ed859
bug: fix remove of ./example
JulioJu Feb 7, 2021
67f127a
tech: finish lint with eslint
JulioJu Feb 7, 2021
51425d1
tech: add Husky for pre-commit hook
JulioJu Feb 7, 2021
1346027
tech: add TypeScript support
JulioJu Feb 7, 2021
9a10531
bug: correct `$yarn serve`
JulioJu Feb 7, 2021
137ddc5
feat: add color highlighting + footnote + examples
JulioJu Feb 8, 2021
778cbc0
tech: package.json typo
JulioJu Feb 8, 2021
a7ad3b4
feat: create an article with images
JulioJu Feb 8, 2021
c6cc2d9
tech: add some images for articles
JulioJu Feb 8, 2021
3ad438b
bug: correct tsconfig
JulioJu Feb 8, 2021
2c64b3e
feat: add date on page that list articles and articles
JulioJu Feb 8, 2021
821818d
fix: error with vuepress-plugin-typescript
JulioJu Feb 8, 2021
647afbf
feat: add read-time
JulioJu Feb 9, 2021
f180ff7
bug: try to fix some compileerrors
JulioJu Feb 9, 2021
35dd979
tech: improve folder architecture
JulioJu Feb 11, 2021
35952ae
bug: correct tsconfig.json file
JulioJu Feb 11, 2021
6ecb749
Feature: add Footer
JulioJu Feb 11, 2021
6eb1a17
bug: fix tsconfig problems
JulioJu Feb 11, 2021
1846e55
tech: Vue.js tests
JulioJu Feb 11, 2021
f495601
feat: footer + add scss support
JulioJu Feb 13, 2021
e0119c7
fix: line number misalligned
JulioJu Feb 13, 2021
3e3fb5d
feat : header imported from https://github.com/sogilis/Blog/
JulioJu Feb 13, 2021
c6404d1
fix: remove enhanceApp.js :
JulioJu Feb 14, 2021
2f82129
fix: typescript Cannot find module … or its corresponding type declar…
JulioJu Feb 14, 2021
b90073b
feat: use `<ClientOnly>` code. Seems to be buggy with TypeScript
JulioJu Feb 14, 2021
fff4598
feat: remove TypeScript
JulioJu Feb 14, 2021
c27f172
fix: to command `vuepress build` remove option `--debug` that cause n…
JulioJu Feb 14, 2021
9b57397
Revert "feat: remove TypeScript"
JulioJu Feb 14, 2021
c0cd7e3
fix: remove `keep.ts`. Is it not useful currently as we have a `d.ts`…
JulioJu Feb 14, 2021
c506faa
feat: import script for Navigation Menu from script.js https://github…
JulioJu Feb 14, 2021
a45bfe3
feat: import index page from https://github.com/sogilis/Blog/tree/92f…
JulioJu Feb 14, 2021
08f107a
tech: no nead to use `<ClientOnly>`
JulioJu Feb 14, 2021
64b118d
feat: improve pagination design
JulioJu Feb 14, 2021
56087fa
feat: import page of Post page from https://github.com/sogilis/Blog/t…
JulioJu Feb 14, 2021
3977d9b
feat: `tag` is renamed `tags`
JulioJu Feb 14, 2021
fd42885
fix: z-index for header
JulioJu Feb 14, 2021
7b6c61e
doc: doc that Header styles can't be scopped
JulioJu Feb 14, 2021
e06d6c1
design: header comment properly code about search bar
JulioJu Feb 14, 2021
e642d12
feat: install some cool plugins of VuePress + upgrade dependencies
JulioJu Feb 14, 2021
d54a3df
feat: add bare-metal VuePress SearchBox
JulioJu Feb 14, 2021
6bd583b
tech: start to suppress access to DOM API
JulioJu Feb 15, 2021
06c997a
feat: add License
JulioJu Feb 15, 2021
3946642
feat: add Category page
JulioJu Feb 15, 2021
931b914
fix: add plugin vuepress-plugin-reading-progress
JulioJu Feb 16, 2021
a0ff9ec
tech & feat: improve organization of Layout.vue & improve a little style
JulioJu Feb 16, 2021
10aa88f
feat: add component VideoIframe as https://gohugo.io/content-manageme…
JulioJu Feb 16, 2021
4c37434
feat: import post of year 2018 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
1ba82e3
feat: import post of year 2017 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
6481200
feat: import post of year 2016 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
793e212
feat: add Disclaimer shortcode
JulioJu Feb 16, 2021
2d78358
feat: import post of year 2015 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
5ed0f9d
feat: import post of year 2014 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
af017a8
fix: css error for Posts
JulioJu Feb 16, 2021
cab010c
doc: add documentation about migration from Hugo
JulioJu Feb 16, 2021
5065ab1
feat: import post of year 2019 from https://github.com/sogilis/Blog/t…
JulioJu Feb 16, 2021
5aeb0ee
feat: several categories by category
JulioJu Feb 16, 2021
45263c6
feat: category should not be uppercased
JulioJu Feb 16, 2021
404a287
feat: add pagination
JulioJu Feb 16, 2021
6f83b4e
bug: correct tsconfig cause of error `Property 'XXX' does not exist o…
JulioJu Feb 17, 2021
241aee7
design: header, link to page of Tags and Categories
JulioJu Feb 16, 2021
bccaccb
feat: Carde Article, we should show only title
JulioJu Feb 16, 2021
82be137
design: add favicon
JulioJu Feb 16, 2021
8e2b7b1
fix: Prisme does not support systemd
JulioJu Feb 16, 2021
0411c80
feat: remove posts that comes from https://github.com/ulivz/70-lines-…
JulioJu Feb 16, 2021
8d87662
fix: invalid date in title
JulioJu Feb 16, 2021
54a6926
tech: remove .eslintrc.yml .prettierrc.yaml
JulioJu Feb 16, 2021
ac607c6
feat: correct netlify.toml
JulioJu Feb 16, 2021
337571f
fix: remove typescript due to compile error with TypeScript on Netlify
JulioJu Feb 16, 2021
ed0a891
feat: add Disqus + finish configuration of website
JulioJu Feb 17, 2021
6b2b230
bug: correct error in date.js
JulioJu Feb 17, 2021
783e060
tech: remove ./enhanceApp.js
JulioJu Feb 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ insert_final_newline = true
# Change these settings to your own preference
indent_style = space
indent_size = 2

[*.md]
indent_size = 4
max_line_length = 80
48 changes: 48 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* See also
* https://github.com/vuepress/vuepress-next/blob/961228234e3983f1f84f992a1317316d09f8cb98/.eslintrc.js#L1
* https://github.com/vuejs/eslint-config-airbnb/blob/master/index.js
*/
module.exports = {
root: true,
extends: ['vuepress', 'airbnb-base'],
settings: {
'import/extensions': ['.js', '.jsx', '.mjs', '.ts', '.tsx'],
},
rules: {
'import/extensions': [
'error',
'always',
{
js: 'never',
mjs: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
// 'no-param-reassign': [
// 'error',
// {
// props: true,
// ignorePropertyModificationsFor: [
// 'state', // for vuex state
// 'acc', // for reduce accumulators
// 'e', // for e.returnvalue
// ],
// },
// ],

/**
* Our rules
*/
'no-console': 'error',
'import/no-extraneous-dependencies': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-use-before-define': 'off',

// Set by Prettier
'max-len': 'off',
},
};
69 changes: 0 additions & 69 deletions .eslintrc.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_USERNAME: Blog
SLACK_ICON_EMOJI: ":warning:"
SLACK_COLOR: "#A30101"
SLACK_ICON_EMOJI: ':warning:'
SLACK_COLOR: '#A30101'
SLACK_TITLE: Dead link checker
SLACK_MESSAGE: Blog contains dead link(s) :boom:. Please fix this quickly to prevent SEO degradation.
SLACK_FOOTER: Scheduled job executed by Github Actions
Expand Down
27 changes: 6 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,16 @@
# Check https://zzz.buzz/2018/05/23/differences-of-rules-between-gitignore-and-dockerignore/

/node_modules/
/dist/
/export/
/npm-debug.log
/yarn-error.log

# You can download manually Hugo binaries here
/bin/
# Generated by VuePress
/blog/.vuepress/.temp/
/blog/.vuepress/.cache/
/blog/.vuepress/dist/

# Generated resources (like css from scss)
/site/resources/_gen

# ./site/data/webpack.json is generated
/site/data/
# Needed for https://github.com/vuepress/configs/tree/master/packages/eslint-config-vuepress-typescript
!/blog/.vuepress

# Idea IntelliJ
/.idea/
Expand All @@ -39,17 +36,5 @@
# to avoid accidental push of this file.
/package-lock.json

# External dependencies copied from ./node_modules that we won't have in our
# repo Git
/site/themes/sogilis/assets/css/reboot.min.css
/site/themes/sogilis/assets/css/reboot.min.css.map
/site/themes/sogilis/static/css/typeface-eb-garamond/
/site/themes/sogilis/static/css/typeface-montserrat/
/site/static/admin/netlify-cms.js
/site/static/admin/netlify-cms.js.map

# VS Code editor
.vscode

# macOS files
./.DS_Store
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
30 changes: 30 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
}

readonly hook_name="$(basename "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

export readonly husky_skip_init=1
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
exit $exitCode
fi

exit 0
fi
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn test && yarn sort-package-json
67 changes: 67 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/**
* See also
* https://github.com/vuepress/vuepress-next/blob/961228234e3983f1f84f992a1317316d09f8cb98/package.json#L32
* https://github.com/vuepress/configs/blob/master/packages/prettier-config-vuepress/lib/index.js
*/
module.exports = {
// Maximum line length
printWidth: 80,

// Specify the number of spaces per indentation-level
tabWidth: 2,

// Indent lines with tabs instead of spaces
useTabs: false,

// Use semicolons or not
semi: true,

// Use single quotes instead of double quotes
singleQuote: true,

// Change when properties in objects are quoted
quoteProps: 'consistent',

// Use single quotes instead of double quotes in JSX
jsxSingleQuote: true,

// Print trailing commas wherever possible when multi-line
trailingComma: 'es5',

// Print spaces between brackets in object literals.
bracketSpacing: true,

// Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
jsxBracketSameLine: false,

// Include parentheses around a sole arrow function parameter
arrowParens: 'always',

// Format only a segment of a file.
rangeStart: 0,
rangeEnd: Infinity,

// Specify which parser to use.
// parser: undefined,

// Specify the file name to use to infer which parser to use.
// filepath: undefined,

// Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
requirePragma: false,

// Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
insertPragma: false,

// By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and BitBucket.
proseWrap: 'preserve',

// Specify the global whitespace sensitivity for HTML files
htmlWhitespaceSensitivity: 'css',

// Whether or not to indent the code inside <script> and <style> tags in Vue files
vueIndentScriptAndStyle: false,

// End of line
endOfLine: 'lf',
};
43 changes: 0 additions & 43 deletions .prettierrc.yaml

This file was deleted.

Loading