fix: Initial welcome docs account for new title field
This commit is contained in:
@@ -142,13 +142,17 @@ Team.prototype.provisionFirstCollection = async function(userId) {
|
|||||||
|
|
||||||
// For the first collection we go ahead and create some intitial documents to get
|
// For the first collection we go ahead and create some intitial documents to get
|
||||||
// the team started. You can edit these in /server/onboarding/x.md
|
// the team started. You can edit these in /server/onboarding/x.md
|
||||||
const onboardingDocs = ['support', 'integrations', 'editor', 'philosophy'];
|
const onboardingDocs = [
|
||||||
for (const name of onboardingDocs) {
|
'❤️ Support',
|
||||||
|
'🚀 Integrations & API',
|
||||||
|
'📝 Our Editor',
|
||||||
|
'👋 What is Outline',
|
||||||
|
];
|
||||||
|
for (const title of onboardingDocs) {
|
||||||
const text = await readFile(
|
const text = await readFile(
|
||||||
path.join(__dirname, '..', 'onboarding', `${name}.md`),
|
path.join(__dirname, '..', 'onboarding', `${title}.md`),
|
||||||
'utf8'
|
'utf8'
|
||||||
);
|
);
|
||||||
const { title } = parseTitle(text);
|
|
||||||
const document = await Document.create({
|
const document = await Document.create({
|
||||||
isWelcome: true,
|
isWelcome: true,
|
||||||
parentDocumentId: null,
|
parentDocumentId: null,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# ❤️ Support
|
|
||||||
|
|
||||||
We hate bugs as much as you and do everything possible to keep the app bug-free. Help us out by getting in touch with the team if you see any problems with Outline. You can email [hello@getoutline.com](mailto:hello@getoutline.com) directly and we’ll get back to you (hopefully with a fix!) as soon as possible.
|
We hate bugs as much as you and do everything possible to keep the app bug-free. Help us out by getting in touch with the team if you see any problems with Outline. You can email [hello@getoutline.com](mailto:hello@getoutline.com) directly and we’ll get back to you (hopefully with a fix!) as soon as possible.
|
||||||
|
|
||||||
If you already have a GitHub account then you can also submit issues directly to the development team on our [open issue tracker](https://github.com/outline/outline/issues).
|
If you already have a GitHub account then you can also submit issues directly to the development team on our [open issue tracker](https://github.com/outline/outline/issues).
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
# 👋 What is Outline
|
|
||||||
|
|
||||||
Outline is a place to build your team knowledge base, you could think of it like your team’s shared library – a place for important documentation, notes, and ideas to live and be discovered. Some things you might want to keep in Outline:
|
Outline is a place to build your team knowledge base, you could think of it like your team’s shared library – a place for important documentation, notes, and ideas to live and be discovered. Some things you might want to keep in Outline:
|
||||||
|
|
||||||
- Documentation
|
- Documentation
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
# 📝 Our Editor
|
|
||||||
|
|
||||||
The heart of Outline is the document editor. We let you write in the way that you prefer – be it Markdown, WYSIWYG, or taking advantage of the many keyboard shortcuts.
|
The heart of Outline is the document editor. We let you write in the way that you prefer – be it Markdown, WYSIWYG, or taking advantage of the many keyboard shortcuts.
|
||||||
|
|
||||||

|

|
||||||
@@ -1,5 +1,3 @@
|
|||||||
# 🚀 Integrations & API
|
|
||||||
|
|
||||||
## Integrations
|
## Integrations
|
||||||
|
|
||||||
Outline supports tons of the most popular tools on the market out of the box. Just paste links to a YouTube video, Figma design, or Realtimeboard to get instant live-embeds in your documents.
|
Outline supports tons of the most popular tools on the market out of the box. Just paste links to a YouTube video, Figma design, or Realtimeboard to get instant live-embeds in your documents.
|
||||||
Reference in New Issue
Block a user