Skip to content

Commit e73f69f

Browse files
committed
docs: update list of guessed dirs
1 parent ae1aec7 commit e73f69f

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules/
2-
/.env
32
.env

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> Upload static website to IPFS pinning services and optionally update DNS.
88
99
<p align="center">
10-
<img src="./docs/og-image.png">
10+
<img src="docs/og-image.png">
1111
</p>
1212

1313
The goal of `@agentofuser/ipfs-deploy` is to make it as easy as possible to
@@ -67,16 +67,17 @@ guess it for you based on the build directories used by the most popular static
6767
site generators:
6868

6969
```javascript
70+
// prettier-ignore
7071
const guesses = [
71-
'_site', // jekyll, hakyll
72-
'site',
73-
'public', // gatsby, hugo
74-
'dist', // nuxt
75-
'output', // pelican
76-
'out', // hexo
77-
'build', // metalsmith, middleman
72+
'_site', // jekyll, hakyll, eleventy
73+
'site', // forgot which
74+
'public', // gatsby, hugo
75+
'dist', // nuxt
76+
'output', // pelican
77+
'out', // hexo
78+
'build', // create-react-app, metalsmith, middleman
7879
'website/build', // docusaurus
79-
'docs',
80+
'docs', // many others
8081
]
8182
```
8283

index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,17 @@ async function isNodeReachable(port) {
7373
}
7474

7575
function guessedPath() {
76+
// prettier-ignore
7677
const guesses = [
77-
'_site', // jekyll, hakyll
78-
'site',
79-
'public', // gatsby, hugo
80-
'dist', // nuxt
81-
'output', // pelican
82-
'out', // hexo
83-
'build', // metalsmith, middleman
78+
'_site', // jekyll, hakyll, eleventy
79+
'site', // forgot which
80+
'public', // gatsby, hugo
81+
'dist', // nuxt
82+
'output', // pelican
83+
'out', // hexo
84+
'build', // create-react-app, metalsmith, middleman
8485
'website/build', // docusaurus
85-
'docs',
86+
'docs', // many others
8687
]
8788

8889
return fp.filter(existsSync)(guesses)[0]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"format": "npx prettier --write ./**/*.{js,json,md,mdx,html,css}",
7979
"test": "echo \"Error: no test specified\" && exit 1",
8080
"commit": "npx sgc",
81+
"commit:retry": "npx sgc --retry",
8182
"semantic-release": "./semantic-release-dry-run.bash",
8283
"deploy": "./release.bash"
8384
},

0 commit comments

Comments
 (0)