Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toeverything/affine.pro
AFFiNE official website, source for affine.pro
https://github.com/toeverything/affine.pro
Last synced: 3 days ago
JSON representation
AFFiNE official website, source for affine.pro
- Host: GitHub
- URL: https://github.com/toeverything/affine.pro
- Owner: toeverything
- License: agpl-3.0
- Created: 2023-03-14T08:20:08.000Z (over 1 year ago)
- Default Branch: production
- Last Pushed: 2024-10-29T07:48:01.000Z (6 days ago)
- Last Synced: 2024-10-29T21:28:02.809Z (5 days ago)
- Language: Vue
- Homepage: https://affine.pro
- Size: 1.51 GB
- Stars: 627
- Watchers: 14
- Forks: 108
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-affine - affine-homepage - The source for affine.pro (Design)
README
# affine.pro
This repo is AFFiNE official website and blog source code.
## Git Flow
Feature dev: `feature/$x` or `master` -> [`staging`](https://next.affine.pro) -> [`production`](https://affine.pro)Issue/Hotfix: `issue/$x` -> `production`
## How to publish blog
The blog uses AFFiNE as the content source. The Workspace ID is found in the following file: [services/blog/getWorkspacePages.ts](services/blog/getWorkspacePages.ts)
Each blog should abide by the following format:
```
---
title: How AFFiNE Classifies Editors
author: Chi Zhang, Yifeng Wang , Ran Chen, Fanjing Zhang
tags: Let’s make XXX
slug: how-affine-classifies-editors
description: There are so many editors today that users may find it difficult to select
created: 2022-06-27
updated: 2022-06-27
layout: blog
pulish: false
---
[cover image]
[article content]
````title` the title of the article
`author` the author/authors of the article in a comma sepeareted list. For a list of available authors, see [services/blog/userMap.ts](services/blog/userMap.ts). Profile images are taken from the [public](public) folder.
`tags` the tag, or rather categorey, of the article
`slug` the unique url for the article `https://affine.pro/blog/{slug}` - do not use special characters and replace ` ` (spaces) with `-`
`description` a small description to the article, no more than 2 sentences
`created` this should be the publish date
`updated` this should be set as the publish date, and only this date is updated when edits are made
`layout` should generally stay as `blog`
`publish` set to false to ensure this article is not public, only set to `true` when the article is ready for publishing (will be published as soon as set to true)
# How to develop
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install
```## Development Server
Start the development server on http://localhost:3001
```bash
npm run dev
```## Production
Build the application for production:
```bash
npm run build
```Locally preview production build:
```bash
npm run preview
```Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.