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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert docs to ir-docs #785

Draft
wants to merge 65 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
25820e8
convert docs to ir-docs
trevor-coleman Oct 11, 2023
9c12a7b
comment out final buiild scripts for now
trevor-coleman Oct 11, 2023
c295e8c
update version of circleCI config
trevor-coleman Oct 11, 2023
896903f
fix description
trevor-coleman Oct 11, 2023
e175a59
prevent main release from running on 'force-docs' for now
trevor-coleman Oct 11, 2023
8c173cf
remove description from toolbox/_category_.json
trevor-coleman Oct 11, 2023
dd7fa46
fix broken links
trevor-coleman Oct 11, 2023
ed5824a
fix broken link
trevor-coleman Oct 11, 2023
77fc193
enable builds for test branch
trevor-coleman Oct 11, 2023
7d031a5
fix path again
trevor-coleman Oct 11, 2023
26bb58e
fix links
trevor-coleman Oct 11, 2023
394c3a4
fix links
trevor-coleman Oct 11, 2023
b493569
fix links
trevor-coleman Oct 11, 2023
9aae019
fix links
trevor-coleman Oct 11, 2023
20ccbbc
use dev orb
trevor-coleman Oct 11, 2023
17d31da
use dev orb
trevor-coleman Oct 11, 2023
901af1b
add delete me
trevor-coleman Oct 11, 2023
a122c7c
bump orb
trevor-coleman Oct 11, 2023
af92d0f
bump orb
trevor-coleman Oct 11, 2023
c3d6b93
bump dev orb
trevor-coleman Oct 11, 2023
28726e8
correctly name sidebar categories
trevor-coleman Oct 11, 2023
2e90763
restore production orb
trevor-coleman Oct 11, 2023
bf0efc7
fix issues in docs
trevor-coleman Oct 11, 2023
4de33c4
back to dev orb
trevor-coleman Oct 11, 2023
33d7d1e
change to trigger deploy
trevor-coleman Oct 11, 2023
d100a2b
remove 2.0
trevor-coleman Oct 11, 2023
3f0b9f4
bump dev orb
trevor-coleman Oct 12, 2023
04a9d47
use production orb
trevor-coleman Oct 12, 2023
d441345
use dev orb
trevor-coleman Oct 12, 2023
d64f556
bump dev orb
trevor-coleman Oct 12, 2023
ae91da2
use dev orb
trevor-coleman Oct 12, 2023
c43a201
use dev orb
trevor-coleman Oct 12, 2023
1635d6d
use dev orb
trevor-coleman Oct 12, 2023
385765a
use prod orb
trevor-coleman Oct 12, 2023
7c7ee90
small change to trigger build-docs
trevor-coleman Oct 13, 2023
de17131
set sidebar title
trevor-coleman Oct 13, 2023
2cefcf2
use dev orb
trevor-coleman Oct 13, 2023
87db92d
Updated config.yml
trevor-coleman Oct 13, 2023
7501606
fix version
trevor-coleman Oct 13, 2023
5f216e7
Updated config.yml
trevor-coleman Oct 13, 2023
c005a04
bump dev orb
trevor-coleman Oct 13, 2023
9ff58ff
bump dev orb
trevor-coleman Oct 13, 2023
a12be5b
bump dev orb
trevor-coleman Oct 13, 2023
2aeb8f9
bump dev orb
trevor-coleman Oct 13, 2023
ceaa143
bump dev orb
trevor-coleman Oct 13, 2023
a8b0d98
bump dev orb
trevor-coleman Oct 13, 2023
11a539d
bump dev orb
trevor-coleman Oct 13, 2023
ef6b0e8
bump dev orb
trevor-coleman Oct 13, 2023
53c7a7a
bump dev orb
trevor-coleman Oct 13, 2023
09c0224
bump dev orb
trevor-coleman Oct 13, 2023
48ee1ac
bump dev orb to
trevor-coleman Oct 13, 2023
c74fa36
bump dev orb to zuwi
trevor-coleman Oct 13, 2023
f215779
bump dev orb to ebnl
trevor-coleman Oct 13, 2023
83b4c0d
bump dev orb to hitn
trevor-coleman Oct 13, 2023
69c5d6b
bump dev orb to jcwf
trevor-coleman Oct 16, 2023
6e1e446
bump dev orb to tnsu
trevor-coleman Oct 16, 2023
d57e6a8
bump dev orb to rwex
trevor-coleman Oct 16, 2023
56cef94
bump dev orb to piej
trevor-coleman Oct 16, 2023
fbff8c8
bump dev orb to gquk
trevor-coleman Oct 16, 2023
f768810
add colon
trevor-coleman Oct 16, 2023
ae03bc8
remove index
trevor-coleman Oct 16, 2023
8f1360c
make publish dependent on tests
trevor-coleman Oct 16, 2023
f8cdf87
move getting started to index
trevor-coleman Oct 16, 2023
eaa20d0
remove unnecessary link
trevor-coleman Oct 16, 2023
c3339cd
fix broken links
trevor-coleman Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#

version: 2.1

orbs:
publish-docs: infinitered/[email protected]


parameters:
"force-docs":
type: boolean
default: false

defaults: &defaults
docker:
# Choose the version of Node you want here
docker: # Choose the version of Node you want here
- image: cimg/node:18.17.1
working_directory: ~/repo

version: 2
jobs:
setup:
<<: *defaults
Expand Down Expand Up @@ -65,9 +74,26 @@ jobs:
name: Publish to NPM
command: yarn ci:publish # this will be added to your package.json scripts

# Parameters for the publish-docs orb
publish-details: &publish-details
description: A delightful toolkit for building Node-based CLIs in TS/JS
git_email: [email protected]
git_username: Infinite Red CI
label: Gluegun
project_name: gluegun
source_docs_dir: ir-docs
source_repo_directory: source
target_docs_dir: docs
target_repo: [email protected]:infinitered/ir-docs.git
target_repo_directory: target

workflows:
version: 2
test_and_release:
when:
and:
- not: << pipeline.parameters.force-docs >>
- true # Placeholder for correct YAML structure
jobs:
- setup
- tests:
Expand All @@ -79,3 +105,19 @@ workflows:
filters:
branches:
only: master
- publish-docs/publish_docs:
<<: *publish-details
filters:
branches:
only:
- ir-docs
requires:
- publish
- test_and_release
# for testing and debugging
force-docs:
when: << pipeline.parameters.force-docs >>
jobs:
- publish-docs/publish_docs:
<<: *publish-details

4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ module.exports = {
}
```

See the [toolbox api docs](./docs/toolbox-api.md) for more details on what you can do.
See the [toolbox api docs](/toolbox-api/) for more details on what you can do.

See the [runtime docs](./docs/runtime.md) for more details on building your own CLI and join us in the #gluegun channel of the Infinite Red Community Slack ([community.infinite.red](http://community.infinite.red)) to get friendly help!
See the [runtime docs](/runtime/) for more details on building your own CLI and join us in the #gluegun channel of the Infinite Red Community Slack ([community.infinite.red](http://community.infinite.red)) to get friendly help!

# Who Is Using This?

Expand Down
17 changes: 9 additions & 8 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
- [Home](/)
- [Getting Started](/getting-started)
- [Runtime API](/runtime)
- [Toolbox API](/toolbox-api)
- [config](/toolbox-config)

* [Getting Started](/getting-started)
* [Runtime API](/runtime)
* [Toolbox API](/toolbox-api)
- [config](/toolbox-api/config)
- [filesystem](/toolbox-filesystem)
- [semver](/toolbox-semver)
- [http](/toolbox-http)
Expand All @@ -14,10 +15,10 @@
- [template](/toolbox-template)
- [patching](/toolbox-patching)
- [packageManager](/toolbox-package-manager)
- Tutorials
* Tutorials
- [Tutorial: Making a Movie CLI](/tutorial-making-a-movie-cli)
- [Tutorial: Making a Plugin](/tutorial-making-a-plugin)
- Guides
* Guides
- [Guide: Architecting Your Gluegun CLI](/guide-architecture)
- [Plugins](/plugins)
- [Contributing](/contributing)
* [Plugins](/plugins)
* [Contributing](/contributing)
2 changes: 1 addition & 1 deletion docs/tutorial-making-a-movie-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_You can see the latest version of the result of this tutorial on Github at [https://github.com/infinitered/tutorial-movie](https://github.com/infinitered/tutorial-movie)!_

In this tutorial, we'll make a Gluegun-powered command-line interface called `movie`. Before doing this tutorial, make sure you've followed the installation instructions in [Getting Started](/getting-started). We will also be using [yarn](https://yarnpkg.com/) in this tutorial rather than `npm`. You can use `npm` if you want.
In this tutorial, we'll make a Gluegun-powered command-line interface called `movie`. Before doing this tutorial, make sure you've followed the installation instructions in [Getting Started](../getting-started). We will also be using [yarn](https://yarnpkg.com/) in this tutorial rather than `npm`. You can use `npm` if you want.

## Generate a new CLI

Expand Down
8 changes: 8 additions & 0 deletions ir-docs/contributing/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Contributing",
"position": 600,
"link": {
"type": "doc",
"id": "index"
}
}
94 changes: 94 additions & 0 deletions ir-docs/contributing/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Contributing

_Welcome!_

Bug fixes, features, docs, marketing, and issue support are all contributions. We love it when people help out and are more than willing to give you advice, guidance, or just be a 🐥 debugger for you.

## Global Dependencies

If you're reading this, you are probably interested in pitching in from a code point of view.

`gluegun` is powered by Node (7.6 or above). Install Node using `brew` (if on macOS) or by following the instructions here: [https://nodejs.org/en/download/current/](https://nodejs.org/en/download/current/)

Also install yarn: `brew install yarn` or [https://yarnpkg.com](https://yarnpkg.com).

## Installing `gluegun`

Next, fork the repo [on Github](https://github.com/infinitered/gluegun) and clone down your repo.

```sh
git clone [email protected]/<yourusername>/gluegun
```

Install all the dependencies.

```
cd gluegun
yarn
```

Gluegun's source files are mostly in `./src` and are written in [TypeScript](https://www.typescriptlang.org). Documentation lives in `/docs`.

## Running Tests And Linting

On macOS or Linux:

```sh
yarn test
yarn lint
yarn watch
yarn integration
```

On windows:

```sh
yarn lint
yarn windows:test
```

## Features & Fixes

```sh
git branch feature/fun
# furious typing
yarn test
yarn lint
git commit -m "Adds fun"
git push -u origin --HEAD
```

Passing tests and linting is required before we'll merge a pull request. If you need help with this, feel free to file an issue or chat with us on the [Infinite Red Community Slack](http://community.infinite.red).

## Submitting a Pull Request

Jump on Github on your fork. Switch to the branch with your new changes, and
open a PR against `master` of [infinitered/gluegun](https://github.com/infinitered/gluegun).

Screenshots of what the feature is 💯. Animated gifs (suggested apps: licecap, Gif Brewery, or Kap) are 💯 + 🦄.

Then submit the pull request.

- It's okay to submit an issue before breaking changes or shenanigans to get a sense if it's cool
- It's okay to submit PRs to start a discussion - just mark it 🚨🚨🚨 (or whatever) to let us know it's a conversation
- It's okay to submit changes to PRs not yet merged, just make sure it's related to the PR
- If Github is complaining about conflicts, rebase downstream, merge upstream

## Keeping up to date

You want your fork's `master` to be the same as `gluegun/master`.

```sh
# just once, run this to track our repo as `upstream`
git remote add upstream https://github.com/infinitered/gluegun.git

# then when you need to update
git checkout master
git pull upstream
# if on your own branch
git checkout <your branch>
git merge master

# and here's where you'd create your branch
git checkout -b feature/mybranch
```
10 changes: 10 additions & 0 deletions ir-docs/contributing/releasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Releasing Gluegun

We now have CircleCI continuous integration and continous deployment set up! Thanks to Morgan Laco for setting that up.

To release, just squash and merge a pull request and prefix with one of the following:

- "fix: Some feature" - will release a patch version (aka 1.0.1)
- "feat: Some feature" - will release a feature version (aka 1.1.0)
- "feat: BREAKING CHANGE: Some breaking change" - will release a breaking version (aka 2.0.0)
- "doc: Some docs" or "chore: Some chore" won't release
8 changes: 8 additions & 0 deletions ir-docs/guides/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Guides",
"position": 600,
"link": {
"type": "generated-index",
"description": "Guides to advanced Gluegun topics."
}
}
Loading