-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move createCMS to alinea/core and update init command and docs
- Loading branch information
Showing
8 changed files
with
47 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {createNextCMS} from 'alinea/next' | ||
import {createCMS} from 'alinea/next' | ||
import {config} from '../alinea.config' | ||
|
||
export const cms = createNextCMS(config) | ||
export const cms = createCMS(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
import alinea, {createCMS} from 'alinea' | ||
|
||
const Page = alinea.type('Page', { | ||
title: alinea.text('Title'), | ||
path: alinea.path('Path') | ||
}) | ||
|
||
export const cms = createCMS({ | ||
schema: { | ||
Page | ||
}, | ||
workspaces: { | ||
main: alinea.workspace('Example', { | ||
pages: alinea.root('Example project', { | ||
welcome: alinea.page( | ||
Page({ | ||
title: 'Welcome' | ||
}) | ||
), | ||
[alinea.meta]: { | ||
contains: ['Page'] | ||
} | ||
}), | ||
media: alinea.media(), | ||
[alinea.meta]: { | ||
source: 'content', | ||
mediaDir: 'public' | ||
} | ||
}) | ||
} | ||
}) | ||
import alinea from 'alinea' | ||
import {createCMS} from 'alinea/core' | ||
|
||
const Page = alinea.type('Page', { | ||
title: alinea.text('Title'), | ||
path: alinea.path('Path') | ||
}) | ||
|
||
export const cms = createCMS({ | ||
schema: { | ||
Page | ||
}, | ||
workspaces: { | ||
main: alinea.workspace('Example', { | ||
pages: alinea.root('Example project', { | ||
welcome: alinea.page( | ||
Page({ | ||
title: 'Welcome' | ||
}) | ||
), | ||
[alinea.meta]: { | ||
contains: ['Page'] | ||
} | ||
}), | ||
media: alinea.media(), | ||
[alinea.meta]: { | ||
source: 'content', | ||
mediaDir: 'public' | ||
} | ||
}) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters