Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation generation #783

Merged
merged 7 commits into from
Dec 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Documentation

on:
push:
paths:
- docs/**/*
pull_request:
paths:
- docs/**/*

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 12.x
- name: Install dependencies
working-directory: ./docs
run: yarn install --prod --pure-lockfile
- name: Build
working-directory: ./docs
run: yarn docz:build
26 changes: 26 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Website

on:
push:
paths:
- website/**/*
pull_request:
paths:
- website/**/*

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 12.x
- name: Install dependencies
working-directory: ./website
run: yarn install --prod --pure-lockfile
- name: Build
working-directory: ./website
run: yarn build
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
## Next

### Changed

- Run pipelines with Xcode 11.2.1 on CI @pepibumur.

### Removed
Expand Down Expand Up @@ -32,8 +33,10 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
- Utility to build xcframeworks https://github.com/tuist/tuist/pull/759 by @pepibumur.
- Add `CacheStoraging` protocol and a implementation for a local cache https://github.com/tuist/tuist/pull/763 by @pepibumur.
- Add support for changing the cache and versions directory using environment variables https://github.com/tuist/tuist/pull/765 by @pepibumur.
- Add `XCFrameworkNode`, respective parser and metadata provider to facilitate supporting xcframework dependency type https://github.com/tuist/tuist/pull/757 by @lakpa
- Add `XCFrameworkNode`, respective parser and metadata provider to facilitate supporting xcframework dependency type https://github.com/tuist/tuist/pull/757 by @lakpa
- Reactive interface to the System utility https://github.com/tuist/tuist/pull/770 by @pepibumur
- Workflow to make sure that documentation and website build https://github.com/tuist/tuist/pull/783 by @pepibumur.

### Fixed

- Ensure custom search path settings are included in generated projects https://github.com/tuist/tuist/pull/751 by @kwridan
Expand Down
1 change: 1 addition & 0 deletions docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.3.1
87 changes: 35 additions & 52 deletions docs/usage/projectswift.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,15 @@ A `Project.swift` should initialize a variable of type `Project`. It can take an
},
{
name: 'Packages',
description:
"List of Swift Packages used by the project.",
description: 'List of Swift Packages used by the project.',
type: '[Package]',
typeLink: '#package',
optional: true,
default: '[]',
},
{
name: 'Targets',
description:
"List of targets within the project.",
description: 'List of targets within the project.',
type: '[Target]',
typeLink: '#target',
optional: false,
Expand Down Expand Up @@ -182,8 +180,7 @@ Each target in the list of project targets can be initialized with the following
},
{
name: 'Deployment Target',
description:
'The minimum iOS version your product will support.',
description: 'The minimum iOS version your product will support.',
type: 'DeploymentTarget',
typeLink: '#deployment-target',
optional: true,
Expand All @@ -200,7 +197,7 @@ Each target in the list of project targets can be initialized with the following
name: 'Info plist',
description: 'Relative path to the Info.plist',
type: 'Path',
typeLink: "#path",
typeLink: '#path',
optional: false,
default: '',
},
Expand All @@ -224,7 +221,7 @@ Each target in the list of project targets can be initialized with the following
name: 'Entitlements',
description: 'Path to the entitlement file.',
type: 'Path',
typeLink: "#path",
typeLink: '#path',
optional: true,
default: 'nil',
},
Expand Down Expand Up @@ -308,13 +305,11 @@ It represents a list of source files that are part of a target:
},
]}
/>

<Message
info
title="ExpressibleByStringLiteral and ExpressibleByArrayLiteral"
description="The list of source files can be initialized with a string that represents the glob pattern, or an array of strings, which represents a list of glob patterns. In both cases the comiler flags will have no value."
/>

<Message
info
title="Patterns matching the same paths"
Expand Down Expand Up @@ -386,7 +381,7 @@ It represents a list of glob patterns that refer to files:
name: 'Globs',
description: 'Glob pattern to the files.',
type: '[Path]',
typeLink: "#path",
typeLink: '#path',
optional: false,
default: '',
},
Expand All @@ -403,7 +398,7 @@ The `CoreDataModel` type represents a Core Data model:
name: 'Path',
description: 'Relative path to the Core Data model.',
type: 'Path',
typeLink: "#path",
typeLink: '#path',
optional: false,
default: '',
},
Expand Down Expand Up @@ -523,7 +518,6 @@ The `InfoPlist` model represents a target `Info.plist` file. It can have any of
},
]}
/>

<Message
info
title="ExpressibleByStringLiteral"
Expand Down Expand Up @@ -558,7 +552,6 @@ It represents the values of the InfoPlist file dictionary. The reason this type
},
]}
/>

<Message
info
title="ExpressiveByLiteral"
Expand Down Expand Up @@ -683,13 +676,11 @@ A `Scheme` defines a collection of targets to `Build, Run, Test, Profile, Analyz
},
]}
/>

<Message
info
title="Auto-generation of schemes"
description="Tuist will auto-generate a scheme for each target by default in addition to any defined schemes."
/>

<Message
info
title="Schemes & Configurations"
Expand Down Expand Up @@ -902,28 +893,25 @@ Testable target descibe target and tests information.
name: 'Target',
description: 'The target name and its project path.',
type: 'TargetReference',
optional: false
optional: false,
},
{
name: 'Skipped',
description:
'Skip test target from TestAction.',
description: 'Skip test target from TestAction.',
type: 'Bool',
optional: true,
default: 'false',
},
{
name: 'Parallelizable',
description:
'Execute tests in parallel.',
description: 'Execute tests in parallel.',
type: 'Bool',
optional: true,
default: 'false',
},
{
name: 'RandomExecutionOrdering',
description:
'Execute tests in random order.',
description: 'Execute tests in random order.',
type: 'Bool',
optional: true,
default: 'false',
Expand Down Expand Up @@ -962,8 +950,7 @@ Arguments contain commandline arguments passed on launch and Environment variabl
properties={[
{
name: 'Configuration Name',
description:
'Indicates the build configuration to run the archive with.',
description: 'Indicates the build configuration to run the archive with.',
type: 'String',
optional: false,
default: '',
Expand All @@ -978,8 +965,7 @@ Arguments contain commandline arguments passed on launch and Environment variabl
},
{
name: 'Custom Archive Name',
description:
"Set if you want to override Xcode's default archive name.",
description: "Set if you want to override Xcode's default archive name.",
type: 'String',
optional: true,
default: 'nil',
Expand Down Expand Up @@ -1075,7 +1061,6 @@ To specify multiple configurations beyond the default Debug and Release configur
},
]}
/>

<Message
warning
title="Custom Configurations"
Expand All @@ -1100,7 +1085,7 @@ A `Configuration` object describes the build settings and the `.xcconfig` file o
name: 'Path',
description: 'The path to the xcconfig file',
type: 'Path',
typeLink: "#path",
typeLink: '#path',
optional: true,
default: 'nil',
},
Expand All @@ -1118,8 +1103,7 @@ For example, a `.debug` configuration would get `SWIFT_OPTIMIZATION_LEVEL = -Ono
<EnumTable
cases={[
{
case:
'.debug(name: String, settings: [String: String], xcconfig: Path?)',
case: '.debug(name: String, settings: [String: String], xcconfig: Path?)',
description: 'A custom debug configuration',
},
{
Expand Down Expand Up @@ -1191,9 +1175,16 @@ A `DefaultSettings` can be one of the following options:
},
]}
/>

<Message info title="Essential Settings" description="The .essential option can be used in the event all warnings are defined in an `xcconfig` file to prevent Tuist from overriding them at the project or target level."/>
<Message warning title="None settings" description="Projects may fail to compile if some essential settings are missing. Use .none only if you are specifying all the necessary build settings manually or via xcconfig files."/>
<Message
info
title="Essential Settings"
description="The .essential option can be used in the event all warnings are defined in an `xcconfig` file to prevent Tuist from overriding them at the project or target level."
/>
<Message
warning
title="None settings"
description="Projects may fail to compile if some essential settings are missing. Use .none only if you are specifying all the necessary build settings manually or via xcconfig files."
/>

## Deployment Target

Expand All @@ -1208,8 +1199,7 @@ The `DeploymentTarget` model represents the minimum operating system version you
},
{
case: '.macOS(targetVersion: String)',
description:
'The minimum macOS version your product will support.',
description: 'The minimum macOS version your product will support.',
},
]}
/>
Expand All @@ -1222,18 +1212,15 @@ The `DeploymentDevice` model represents the device your product will support. It
cases={[
{
case: '.iphone',
description:
'An iPhone device.',
description: 'An iPhone device.',
},
{
case: '.ipad',
description:
'An iPad device.',
description: 'An iPad device.',
},
{
case: '.mac',
description:
'A mac device.',
description: 'A mac device.',
},
]}
/>
Expand Down Expand Up @@ -1291,14 +1278,13 @@ A `Workspace.swift` should initialize a variable of type `Workspace`. It can tak
description:
'List of paths (or glob patterns) to projects to generate and include within the generated Xcode workspace.',
type: '[Path]',
typeLink: "#path",
typeLink: '#path',
optional: false,
default: '',
},
{
name: 'Schemes',
description:
"List of custom schemes to include in the workspace",
description: 'List of custom schemes to include in the workspace',
type: '[Scheme]',
typeLink: '#scheme',
optional: true,
Expand Down Expand Up @@ -1336,10 +1322,9 @@ A path represents a path to a file, directory, or a group of files represented b
case: '.relativeToRoot(String)',
description:
'Initialize a path that is relative to the closest directory that contains a Tuist or a .git directory.',
}
},
]}
/>

<Message
info
title="ExpressibleByStringLiteral"
Expand All @@ -1354,19 +1339,17 @@ A target within a specified project. The project is specified through the path a
properties={[
{
name: 'path',
description:
'Path to the target's project directory.',
description: "Path to the target's project directory.",
type: 'Path',
typeLink: '#path',
optional: true,
default: 'Workspace or project path.',
},
{
name: 'name',
description:
'Name of the target.',
description: 'Name of the target.',
type: 'String',
optional: false,
}
},
]}
/>
2 changes: 1 addition & 1 deletion website/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ module.exports = {
}
}
`,
output: '/feed.xml',
title: "Tuist's Blog RSS Feed",
output: '/feed.xml',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "Introducing Tuist"
title: 'Introducing Tuist'
date: 2018-09-05
categories: [introduction, tuist]
excerpt: Tuist was oficially released. Read more on this blog post about what motivated us to build Tuist and how it can help you scale your Xcode projects.
Expand Down