Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 636abf5

Browse files
jaredcbaumadamdbradleyperrygovier
authored
Site changes (header, docs styles, search styles, prismic pages) (#145)
* feat(): Update DS, update anchor buttons, update movile nav to not click when collapsed * feat(): Home page top section done * feat(homepage): Started section done * feat(homepage): Done with native, features, and frameworks sections * feat(homepage): Done with basic layout * feat(): Site header looking good * fix(header): Delete unused state * feat(header): Header active routes working * feat(home page): Done with basic layout * feat(solutions pages): Styling done * fix(footer): spacing * feat(): Community page done * fix(): Remove unused imports * feat(footer): Update styles and add newsletter * starting on docs * fix(docs): Table of contents not updating on dev server * feat(docs): Header section properly highlighting * fix(docs): bump chevrons up * fix(docs): Update plugin platform icons * feat(docs): Desktop search styling looking good * feat(docs): Mobile search style and routing using router push * small fixes * fix(): newsletter spacing * fix: spacing * fix: spacing * fix(docs): Spacing on tablet header * fix(docs): Abstracted docs styles to new file and added platform bar * new header started * feat(docs); Dropdown side menu done * finished plugin cards * remove unused assets from previous build process * break out cli and config docs * fix(docs search): Positioning in center of content * move config under reference * Command Reference * fix deleted pages * fix(docs menu): Highlight styles corrected * fix(docs): Style constributor section \n fix(docs): Style previous/next section \n fix(docs): Style list links \n fix(docs): Other small tweaks * fix(docs): Reduces landing image size * fix(docs): Display bug fixes * fix(docs header): Logo position * fix(docs): Styles looking good for doc article content * fix(): Remove unused imports * fix(): Missed a couple conflicts * fix(docs): Update cli links * fix(): Cordova Page * fix(): Finished Cordova page, bumped DS version * feat(): Bumped DS version, small tweaks * DS version bump * fix(search): Search now visible on all pages * fix(search): turn debug off * fix(docs): Merge conflicts * fix(): Container width implementation * fix(): Styled Blog, other small changes * fix(): Blog post newsletter width * fix(): Scope landing page styles * fix(): docs styles * fix(docs): docgen margins * fix(): Use href function for homepage link * fix(): Remove scroll lock on mobile * fix(docs): Break headings to wrap * fix(docs): docgen spacing Co-authored-by: Adam Bradley <[email protected]> Co-authored-by: perry <[email protected]>
1 parent 760d830 commit 636abf5

File tree

296 files changed

+5274
-11387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+5274
-11387
lines changed

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"devDependencies": {
2020
"@capacitor/core": "^2.4.2",
2121
"@capacitor/docgen": "^0.0.9",
22-
"@ionic-internal/ionic-ds": "2.1.2",
22+
"@ionic-internal/ionic-ds": "4.0.0",
2323
"@ionic/prettier-config": "^1.0.1",
24-
"@stencil/core": "^2.0.3",
24+
"@stencil/core": "^2.1.0",
2525
"@stencil/helmet": "^0.3.2",
2626
"@stencil/router": "^2.0.0-1",
2727
"@stencil/sass": "^1.3.2",
28-
"@stencil/ssg": "^0.0.19",
28+
"@stencil/ssg": "^0.0.20",
2929
"@stencil/store": "^1.3.0",
3030
"@types/jest": "^26.0.15",
3131
"@types/node-fetch": "^2.5.7",

pages/docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252
* [Getting Started](web/index.md)
5353
* [PWA Elements](web/pwa-elements.md)
5454
* Reference
55-
* [CLI ->](reference/cli/index.md)
56-
* [Config ->](reference/config/index.md)
55+
* [Config](config/index.md)
56+
* [CLI ->](cli/index.md)
5757
* [Plugins ->](plugins/index.md)

pages/docs/basics/configuring-your-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additionally, since configuring a Capacitor project is no different from configu
1919

2020
## Common Configuration
2121

22-
Capacitor has some high-level configuration options that are set in the [Capacitor configuration file](/docs/reference/config). These generally don't modify native functionality, but control Capacitor's tooling.
22+
Capacitor has some high-level configuration options that are set in the [Capacitor configuration file](/docs/config). These generally don't modify native functionality, but control Capacitor's tooling.
2323

2424
## Native Configuration
2525

pages/docs/cli/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CLI Table of Contents (v2)
2+
3+
* Command Reference
4+
* [CLI Overview](index.md)
5+
* [Add](add.md)
6+
* [Cap](cap.md)
7+
* [Copy](copy.md)
8+
* [Create](create.md)
9+
* [List](list.md)
10+
* [Open](open.md)
11+
* [Plugin Generate](plugin-generate.md)
12+
* [Serve](serve.md)
13+
* [Sync](sync.md)
14+
* [Update](update.md)

pages/docs/cli/add.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: CLI Command - cap add
3+
description: Capacitor CLI - cap add
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap add
9+
10+
Add a native platform project to your project.
11+
12+
```bash
13+
npx cap add <platform>
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `platform` (required): `android`, `ios`

pages/docs/cli/cap.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: CLI Command - cap
3+
description: Capacitor CLI command - cap
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap
9+
10+
View all available CLI commands and options.
11+
12+
```bash
13+
npx cap [-V] [-h]
14+
```
15+
16+
<strong>Options:</strong>
17+
- `-V, --version` (optional): Output the version number
18+
- `-h, --help` (optional): Output usage information. Can be used with individual commands too.

pages/docs/cli/copy.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: CLI Command - cap copy
3+
description: Capacitor CLI command - cap copy
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap copy
9+
10+
Copy the web app build and Capacitor configuration file into the native platform project. Run this each time you make changes to your web app or change a configuration value in `capacitor.config.json`.
11+
12+
```bash
13+
npx cap copy [platform]
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `platform` (optional): `android`, `ios`
18+
19+
<strong>Example output:</strong>
20+
```
21+
√ Copying web assets from www to android\app\src\main\assets\public in 2.64s
22+
√ Copying web assets from www to ios/App/public in 450ms
23+
√ Copying native bridge in 7.32ms
24+
√ Copying capacitor.config.json in 3.22ms
25+
√ copy in 2.74s
26+
√ copy in 1.10ms
27+
```

pages/docs/cli/create.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: CLI Commands
3+
description: Capacitor CLI command reference list
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - create
9+
10+
Create a new Capacitor project with a stock project structure if you'd rather start fresh and plan to add a UI/frontend framework separately.
11+
12+
```bash
13+
npx @capacitor/cli create [options] [directory] [name] [id]
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `directory` (optional): Directory to create the new app in, such as `c:\src\myapp`
18+
- `name` (optional): App name
19+
- `id` (optional): App Package Id (in Java package format, no dashes), such as `com.example.app`
20+
21+
<strong>Options:</strong>
22+
- `--npm-client <npmClient>`: npm client to use for dependency installation

pages/docs/cli/index.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: CLI Commands
3+
description: Capacitor CLI command reference list
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI Reference
9+
10+
The Capacitor command-line interface (CLI) tool is used to develop Capacitor apps. View installation details [here](/docs/getting-started).
11+
12+
- [Add](/docs/cli/add)
13+
- [Cap](/docs/cli/cap)
14+
- [Copy](/docs/cli/copy)
15+
- [Create](/docs/cli/create)
16+
- [List](/docs/cli/list)
17+
- [Open](/docs/cli/open)
18+
- [Plugin Generate](/docs/cli/plugin-generate)
19+
- [Serve](/docs/cli/serve)
20+
- [Sync](/docs/cli/sync)
21+
- [Update](/docs/cli/update)

pages/docs/cli/list.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: CLI Command - cap ls
3+
description: Capacitor CLI - cap ls
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap ls
9+
10+
List all installed Cordova and Capacitor plugins.
11+
12+
```bash
13+
npx cap ls [platform]
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `platform` (optional): `android`, `ios`
18+
19+
<strong>Example output:</strong>
20+
```
21+
Found 1 Capacitor plugin for android:
22+
capacitor-mapbox (0.0.1)
23+
Found 2 Cordova plugins for android:
24+
cordova-plugin-camera
25+
cordova-plugin-splashscreen
26+
```

pages/docs/cli/open.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: CLI Command - cap opy
3+
description: Capacitor CLI command - cap opy
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap opy
9+
10+
Opens the native project workspace in the specified native IDE (Xcode for iOS, Android Studio for Android). Once open, use the native IDEs to build, simulate, and run your app on a device.
11+
12+
```bash
13+
npx cap open <platform>
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `platform` (required): `android`, `ios`

pages/docs/cli/plugin-generate.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Capacitor Plugin Generate
3+
description: Capacitor Plugin Generate
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Plugin Generate
9+
10+
Create a new custom Capacitor plugin. This starts a wizard that prompts you for information about your new plugin. More information on developing plugins [here](/docs/plugins).
11+
12+
```bash
13+
# Capacitor CLI already installed in project
14+
npx cap plugin:generate
15+
16+
# Capacitor CLI not installed
17+
npx @capacitor/cli plugin:generate
18+
```

pages/docs/cli/serve.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: CLI Command - cap serve
3+
description: Capacitor CLI command - cap serve
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap serve
9+
10+
Serves a Capacitor Progressive Web App in the browser, using the `webDir` directory specified in `capacitor.config.json`.
11+
12+
```bash
13+
npx cap serve
14+
```

pages/docs/cli/sync.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: CLI Command - cap sync
3+
description: Capacitor CLI command - cap sync
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap sync
9+
10+
## Sync
11+
12+
Run the [Copy](#copy) and [Update](#update) commands together.
13+
14+
```bash
15+
npx cap sync [options] [platform]
16+
```
17+
18+
<strong>Inputs:</strong>
19+
- `platform` (optional): `android`, `ios`
20+
21+
<strong>Options:</strong>
22+
- `--deployment`: Podfile.lock won't be deleted and pod install will use `--deployment` option.
23+
24+
<strong>Example output:</strong>
25+
```
26+
√ Copying web assets from www to android\app\src\main\assets\public in 3.37s
27+
√ Copying native bridge in 5.80ms
28+
√ Copying capacitor.config.json in 2.59ms
29+
√ copy in 3.43s
30+
√ Updating Android plugins in 11.48ms
31+
Found 1 Capacitor plugin for android:
32+
capacitor-mapbox (0.0.1)
33+
√ update android in 105.91ms
34+
√ copy in 409.80μp
35+
√ update web in 6.80μp
36+
Sync finished in 3.563s
37+
```

pages/docs/cli/update.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: CLI Command - cap update
3+
description: Capacitor - cap update
4+
contributors:
5+
- dotNetkow
6+
---
7+
8+
# Capacitor CLI - cap update
9+
10+
Updates the native plugins and dependencies referenced in `package.json`.
11+
12+
```bash
13+
npx cap update
14+
```
15+
16+
<strong>Inputs:</strong>
17+
- `platform` (optional): `android`, `ios`
18+
19+
<strong>Options:</strong>
20+
- `--deployment`: Podfile.lock won't be deleted and pod install will use `--deployment` option.
File renamed without changes.

pages/docs/index.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ contributors:
1212

1313
Capacitor is a cross-platform native runtime that makes it easy to build web apps that run natively on iOS, Android, <em>and</em> the web. Representing the next evolution of Hybrid apps, it provides a modern native container approach for teams who want to build web-first apps with full access to native SDKs when they need it.
1414

15-
<img src="/assets/img/docs/capacitor-index.png" style="max-height: 360px" />
15+
<img
16+
src="/assets/img/docs/capacitor-index.png"
17+
width="752" height="410"
18+
loading="eager"
19+
/>
1620

1721
## Introduction
1822

0 commit comments

Comments
 (0)