mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-02 15:02:33 +02:00
Merge pull request #73 from ipfs/feat/readme-instructions
Update readme instructions
This commit is contained in:
@@ -1,22 +1,95 @@
|
||||
# IPFS Blog (v2 Beta)
|
||||
# IPFS Blog & News
|
||||
|
||||
[](https://protocol.ai)
|
||||
[](http://ipfs.io/)
|
||||
[](https://protocol.ai)
|
||||
[](http://ipfs.io/)
|
||||
[](https://vuepress.vuejs.org/)
|
||||
[](https://forestry.io)
|
||||
[](http://fleek.co/)
|
||||
|
||||
This repository is home to in-development work on a VuePress/Forestry-based IPFS blog to replace [the existing IPFS blog](https://blog.ipfs.io). Target go-live is in late Q1 2021. Contact @jessicaschilling with any questions.
|
||||

|
||||
|
||||
This repository is home to in-development work on a VuePress/Forestry-based replacement for [the existing IPFS blog](https://blog.ipfs.io). Target go-live is in late Q1 2021. Contact @jessicaschilling with any questions.
|
||||
|
||||
This work is part of a larger product-market fit realignment/enhancement effort on the IPFS website as a whole. [View tracking board.](https://github.com/orgs/ipfs/projects/11)
|
||||
|
||||
⚠️⚠️⚠️ **If you want to publish a blog post, don't do it here yet** — use [the existing blog](https://github.com/ipfs/blog) instead!
|
||||
⚠️⚠️⚠️<br/>**If you want to publish a blog post, don't do it here yet** — use [the existing blog](https://github.com/ipfs/blog) instead!<br/>⚠️⚠️⚠️
|
||||
|
||||
## Authoring/deployment workflow
|
||||
## Workflow for post authors/editors
|
||||
|
||||
This blog uses the `staging` branch as a work-in-progress scratchpad, with the production site deployed from `main` via [Fleek](https://fleek.co/).
|
||||
This site uses the `staging` branch as a work-in-progress scratchpad for blog content. Once approved for go-live, `staging` is merged into `main`; the production site is automatically deployed from the latest `main` using [Fleek](https://fleek.co/).
|
||||
|
||||
We use [Forestry](https://forestry.io) as a CMS-style environment, including perks like WYSIWYG editing and image upload/crop tools. If you're an IPFS core team member and don't have Forestry access, contact @jessicaschilling to arrange access and a quick orientation session. (If you prefer writing in Markdown, don't fear: Forestry also has a raw Markdown view.)
|
||||
Post authors and editors are strongly encouraged to [use this site's Forestry integration](https://forestry.io) for drafting and editing, including perks like WYSIWYG editing image upload/crop tools, and instant previews. If you're an IPFS core team member and don't have Forestry access, contact @jessicaschilling to arrange access and a quick orientation session. (If you prefer writing in Markdown, don't fear: Forestry also has a raw Markdown view.)
|
||||
|
||||
### Forestry authoring/editing tips
|
||||
|
||||
- Use the "Content Types" section of the left-hand menu to drill down to the type of item (e.g. blog post, video, news coverage, event) you want to create or edit.
|
||||
- Use the [image crop/scale tool](https://ipfs-blog.on.fleek.co/image-crop/) to resize and save images so they're the perfect dimensions for link cards and blog post header images. (Don't have an image? Don't worry; the site falls back to generic images in all cases.)
|
||||
- If you're in edit mode for a blog post, you can switch between WYSIWYG and raw Markdown (for example, if you want to add HTML embed code to the Markdown) by choosing "Raw Editor/WYSIWYG Editor" from the dots menu at the top right of the page:<br/>
|
||||
|
||||
### Forestry build preview tips
|
||||
While WYSIWYG mode can often give you a good enough idea of what a blog post will look like, you can also load Forestry's built-in _build preview_ in a new tab by clicking the eye icon at the top right of the page:<br/>
|
||||
|
||||
This build preview lets you preview changes to any content type (not just blog posts), and _does not_ require you to save your changes in order to see them.
|
||||
|
||||
Other tips for using Forestry build previews:
|
||||
- Click the eye icon to regenerate a build preview at any time from the edit page. You may need to reload the build preview page if you don't see changes come through immediately.
|
||||
- Occasionally, a build preview page gets stuck at a URL ending in `forestry/pending` or simply won't load. Try these troubleshooting tips:
|
||||
- Remove `forestry/pending` from the URL and try again.
|
||||
- Check the Previews section of Forestry's [`Site > Settings` page](https://app.forestry.io/sites/lg5t7mxcqbr-da/#/settings/previews) to see the preview server's current status, start/stop/restart the server, or examine the logs for errors. Simply restarting the preview server can correct a multitude of problems.
|
||||
- If all else fails, save your changes, wait a few minutes, and take a look at [Fleek's build of the latest version of the `staging` branch](https://ipfs-blog-staging.on.fleek.co/). It's a considerably slower build/deploy time, but does reflect the latest changes once it finishes deploying.
|
||||
|
||||
### To deploy to the live site
|
||||
|
||||
Forestry writes directly to `staging`, with previews available at https://ipfs-blog-staging.on.fleek.co/. Once a staged post is ready to go live, please PR `staging` to `main` using [this handy shortcut](https://github.com/ipfs/ipfs-blog/compare/main...staging?expand=1). *Note that if multiple posts are in-flight in staging and only one is approved to go live, your PR may need some massaging.*
|
||||
|
||||
### Just want to add a new "link card"?
|
||||
|
||||
Feel free to use Forestry to add details for "link cards" like videos, release notes or news items, and submit a PR for review/merge. However, if you're in a hurry, simply fill in the [public submission form](https://airtable.com/shrNH8YWole1xc70I) and a site maintainer will take care of the rest.
|
||||
|
||||
## Workflow for site developers
|
||||
|
||||
**Important!** All site development forks/PRs (as opposed to blog posts) should be based on and merged into `main`, **not** `staging`.
|
||||
|
||||
### Build and run locally
|
||||
This site is built in [Vuepress](https://vuepress.vuejs.org/guide/), and uses Vue/JavaScript for functional code and Markdown for post content.
|
||||
|
||||
To build a local copy, run the following:
|
||||
|
||||
1. Clone this repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/ipfs/ipfs-blog.git
|
||||
```
|
||||
|
||||
1. Move into the `ipfs-blog` folder and install the NPM dependencies:
|
||||
|
||||
```bash
|
||||
cd ipfs-docs
|
||||
npm install
|
||||
```
|
||||
|
||||
1. Boot up the application in _dev mode_:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
1. Open [localhost:8080](http://localhost:8080) in your browser.
|
||||
1. Close the local server with `CTRL` + `c`.
|
||||
1. To restart the local server, run `npm start` from within the `ipfs-blog` folder.
|
||||
|
||||
### PR and preview
|
||||
Once you're happy with your local changes, please make a PR **against the `main` branch**. Including detailed notes on your PR helps smooth the approval and deployment process, so make sure to thoroughly document your changes, including screenshots to depict any changes in UI.
|
||||
|
||||
PRs against `main` will automatically generate Fleek previews for ease of review. A successful run of a Fleek preview build generates a live preview viewable by clicking `Details` in the `fleek/build` check at the bottom of your PR page:
|
||||

|
||||
|
||||
A reviewer will be by shortly to have a look!
|
||||
|
||||
## Maintainers
|
||||
|
||||
This site is under active maintenance by members of the core [IPFS team](https://ipfs.io/team/).
|
||||
|
||||
## License
|
||||
|
||||
© Protocol Labs | Code is licensed with the [MIT](LICENSE) License. Except as noted, other content licensed [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/).
|
||||
|
||||
Reference in New Issue
Block a user