Skip to content

Commit

Permalink
feat(docz-core): remove ordering deprecated field
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Feb 19, 2019
1 parent a99d62f commit 39660bb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions core/docz-core/src/config/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ export interface Argv {
title: string
description: string
theme: string
/**
* @deprecated since the new ordering using menu on config file
* this property will be deleted in the v1.0
*/
ordering: 'ascending' | 'descending'
wrapper?: string
indexHtml?: string
/** slugify separator */
Expand Down Expand Up @@ -169,10 +164,6 @@ export const setArgs = (yargs: Yargs) => {
type: 'string',
default: getEnv('docz.index.html', null),
})
.option('ordering', {
type: 'string',
default: getEnv('docz.ordering', 'descending'),
})
.option('debug', {
type: 'boolean',
default: getEnv('docz.debug', false),
Expand Down
2 changes: 0 additions & 2 deletions core/docz-core/src/states/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { getRepoUrl } from '../utils/repo-info'
interface Payload {
title: string
description: string
ordering: string
menu: Menu[]
version: string | null
repository: string | null
Expand All @@ -29,7 +28,6 @@ const getInitialConfig = (config: Config): Payload => {
title: config.title,
description: config.description,
menu: config.menu,
ordering: config.ordering,
version: get(pkg, 'version'),
repository: repoUrl,
native: config.native,
Expand Down
1 change: 0 additions & 1 deletion core/docz/src/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export type ThemeConfig = Record<string, any>
export interface Config {
title: string
description: string
ordering: string
themeConfig: ThemeConfig
menu: MenuItem[]
version: string | null
Expand Down

0 comments on commit 39660bb

Please sign in to comment.