fix: Initial welcome docs account for new title field
This commit is contained in:
parent
9338a54fe0
commit
8819a0836e
|
@ -142,13 +142,17 @@ Team.prototype.provisionFirstCollection = async function(userId) {
|
|||
|
||||
// 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
|
||||
const onboardingDocs = ['support', 'integrations', 'editor', 'philosophy'];
|
||||
for (const name of onboardingDocs) {
|
||||
const onboardingDocs = [
|
||||
'❤️ Support',
|
||||
'🚀 Integrations & API',
|
||||
'📝 Our Editor',
|
||||
'👋 What is Outline',
|
||||
];
|
||||
for (const title of onboardingDocs) {
|
||||
const text = await readFile(
|
||||
path.join(__dirname, '..', 'onboarding', `${name}.md`),
|
||||
path.join(__dirname, '..', 'onboarding', `${title}.md`),
|
||||
'utf8'
|
||||
);
|
||||
const { title } = parseTitle(text);
|
||||
const document = await Document.create({
|
||||
isWelcome: true,
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
- 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 formatting toolbar](https://s3.amazonaws.com/dev.beautifulatlas.com/uploads/e2b85962-ca66-4e4c-90d3-b32d30f0610c/754830c0-2aca-467c-82de-2fd6e990b696/Group.png)
|
|
@ -1,5 +1,3 @@
|
|||
# 🚀 Integrations & API
|
||||
|
||||
## 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.
|
Reference in New Issue