Skip to content

Commit 0b97da2

Browse files
committed
Docs: Fix images and links in the last sections of the docs (all-contributors#931)
docs: fix links and images on last sections
1 parent b090955 commit 0b97da2

File tree

8 files changed

+72
-75
lines changed

8 files changed

+72
-75
lines changed
File renamed without changes.
File renamed without changes.

src/content/docs/cli/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ title: CLI Configuration
44
sidebar_label: Configuration
55
---
66

7-
> Please refer to this [documentation for the configuration](../bot/configuration).
7+
Please refer to the [bot documentation for CLI configuration information](../../bot/configuration).

src/content/docs/cli/installation.md renamed to src/content/docs/cli/installation.mdx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
22
id: installation
3-
title: CLI Installation
3+
title: All-Contributors CLI Installation
44
sidebar_label: Installation
55
---
6+
import { Aside } from '@astrojs/starlight/components';
67

7-
## 1. Install the CLI tool
8+
| [![NPM Version](https://img.shields.io/npm/v/all-contributors-cli.svg)](https://www.npmjs.com/package/all-contributors-cli) | [![AUR Version](https://img.shields.io/aur/version/all-contributors-cli.svg)](https://aur.archlinux.org/packages/all-contributors-cli) |
9+
| --- | --- |
810

9-
<a href="https://www.npmjs.com/package/all-contributors-cli">
10-
<img src="https://img.shields.io/npm/v/all-contributors-cli.svg" alt="NPM Version" />
11-
</a>
12-
<a href="https://aur.archlinux.org/packages/all-contributors-cli">
13-
<img src="https://img.shields.io/aur/version/all-contributors-cli.svg" alt="AUR Version" />
14-
</a>
11+
## 1. How to Install the All-Contributors CLI tool
1512

16-
This module is distributed via [npm](https://www.npmjs.com/) which is bundled with [node](https://nodejs.org/) and
17-
should be installed as one of your project's `devDependencies`:
13+
The all-contributors CLI module is distributed via [npm](https://www.npmjs.com/) which is bundled with [node](https://nodejs.org/) and
14+
should be installed as one of your project's `devDependencies`.
15+
16+
To install it run:
1817

1918
```console
2019
npm i -D all-contributors-cli
@@ -23,7 +22,9 @@ npm i -D all-contributors-cli
2322

2423
Alternatively, Arch Linux users can install the [`all-contributors-cli`](https://aur.archlinux.org/packages/all-contributors-cli) package from the AUR.
2524

26-
> The CLI is node-based, if you don't wish to add a node dependency use the [@all-contributors bot 🤖](../bot/overview)
25+
<Aside type="tip">
26+
The CLI is node-based, if you don't wish to add a node dependency use the [@all-contributors bot 🤖](../bot/overview)
27+
</Aside>
2728

2829
## 2. Init the Project
2930

@@ -65,13 +66,8 @@ For example:
6566
}
6667
```
6768

68-
To allow shortcuts such as:
69+
To support shortcuts such as:
6970

7071
```console
7172
npx contributors:add jfmengels doc
7273
```
73-
74-
## What's next
75-
76-
- [Using the CLI](usage)
77-
- [Configuring the CLI](configuration)

src/content/docs/cli/overview.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
---
22
id: overview
3-
title: CLI Overview
3+
title: All-Contributors Command Line Overview
44
sidebar_label: Overview
55
---
66

7-
<a href="https://www.npmjs.com/package/all-contributors-cli">
8-
<img src="https://img.shields.io/npm/v/all-contributors-cli.svg" alt="NPM Version" />
9-
</a>
10-
<a class="github-button" href="https://github.com/all-contributors/all-contributors-cli" data-icon="octicon-star" data-count-href="/all-contributors/all-contributors-cli/stargazers" data-show-count="true" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub" >Star</a>
7+
| [![NPM Version](https://img.shields.io/npm/v/all-contributors-cli.svg)](https://www.npmjs.com/package/all-contributors-cli) | [![GitHub Stars](https://img.shields.io/github/stars/all-contributors/all-contributors-cli?style=social)](https://github.com/all-contributors/all-contributors-cli) |
8+
| --- | --- |
119

12-
## The problem
10+
## About the the All-Contributors Command Line Interface (CLI)
1311

14-
You want to implement the [All Contributors](../specification) spec, but don't
15-
want to maintain the table by hand
12+
The all-contributors-cli is a tool that helps you automate adding contributor acknowledgements for your GitHub or GitLab repository at the command line. THe GitHub bot allows you to call our bot in a issue or pull request.
1613

17-
## The CLI solution
14+
You want to use the command line because:
15+
- You want to add contributors in bulk
16+
- You want to add contributors as part of your project scripts
17+
- You want to add contributors as part of your continuous integration (CI) process
1818

19-
The all-contributors-cli is a tool to help automate adding contributor acknowledgements for your GitHub or GitLab repository.
20-
21-
- [Installing the CLI](installation)
22-
- [Using the CLI](usage)
23-
- [Configuring the CLI](configuration)
19+
Similar to the bot, the CLI allows you to implement the [All Contributors](../specification) spec, without maintaining the contributor table by hand.

src/content/docs/cli/usage.md renamed to src/content/docs/cli/usage.mdx

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
---
22
id: usage
3-
title: CLI Usage
3+
title: Using the All-Contributors CLI
44
sidebar_label: Usage
55
---
6+
import { Aside } from '@astrojs/starlight/components';
67

7-
> This usage documentation assumes you have already followed the [cli installation steps](installation).
8+
<Aside type="tip"> This usage documentation assumes you have already followed the [cli installation steps](installation). Below you will learn how to use the CLI with the `all-contributors` command, to keep things simple. If you are having any difficulties running the command on it's own, then give the `npx all-contributors-cli init` route a try 😺.</Aside>
89

9-
A quick note: Below we'll just show `all-contributors` to keep things simple, but if you're having any difficulties, then give the `npx all-contributors-cli init` route a try 😺.
1010

11-
## Commands
12-
13-
<AUTOGENERATED_TABLE_OF_CONTENTS>
11+
## All-Contributors Command Line Interface Commands
1412

1513
### `all-contributors init`
1614

17-
Run this when you first start using the all-contributors-cli. This command asks a few questions and sets up the project for all-contributors.
18-
This setup includes creating a `.all-contributorsrc` configuration file and creating a contributor table in the `files` you specify (usually your `README.md`).
15+
You can run `all-contributors init` when you first start using the All-Contributors CLI. This command asks a you few questions. It then, sets up the project to support All-Contributors.
16+
17+
The setup includes creating:
18+
* an `.all-contributorsrc` configuration file and
19+
* a contributor table in the `files` you specify.
20+
21+
The default file for the contributor table is your `README.md`.
1922

2023
### `all-contributors add`
2124

22-
Use `add` to add new contributors to your project, or add new ways in which they
23-
have contributed. They will be added to your configuration file, and the
25+
Use the `add` command to add:
26+
* new contributors to your project, or
27+
* add new ways in which they have contributed.
28+
29+
For instance, a user may have already contributed code, but after they add a documentation pull request you might want to add them for documentation too. The contributor will be added to your configuration file, and the
2430
contributors file will be updated just as if you used the [generate command](#all-contributors-generate).
2531

2632
```console
@@ -31,19 +37,18 @@ all-contributors add jfmengels code,doc
3137
```
3238

3339
Where `username` is the user's GitHub or Gitlab username, and `contribution` is a
34-
`,`-separated list of contributions. See the [Emoji Key (Contribution Types Reference)](../emoji-key)
40+
`,`-separated list of contributions. See the [Emoji Key (Contribution Types Reference)](../../emoji-key)
3541
for a list of valid `contribution` types.
3642

37-
> **GitLab Users**: See the [additional requirements for GitLab users](#gitlab-users)
43+
<Aside type="tip"> **GitLab Users**: See the [additional requirements for GitLab users](#gitlab-users) </Aside>
3844

3945
### `all-contributors check`
4046

4147
Use `check` to compare contributors from GitHub with the ones credited in your
4248
`.all-contributorsrc` file, to make sure that credit is given where
4349
it's due.
4450

45-
> Due to GitHub API restrictions, this command only works for projects with less
46-
> than 500 contributors (Unless you set a `PRIVATE_TOKEN` as mentioned [below in GitHub users](#github-users)).
51+
<Aside type="note"> Due to GitHub API restrictions, this command only works for projects with less than 500 contributors (Unless you set a `PRIVATE_TOKEN` as mentioned [below in GitHub users](#github-users)). </Aside>
4752

4853
### `all-contributors generate`
4954

@@ -73,17 +78,13 @@ In some cases you may see the error message `GitHub API rate limit exceeded for
7378
## GitLab Users
7479

7580
Please note that if you are using a self-hosted GitLab instance,
76-
some commands will need you to set an environment variable named `PRIVATE_TOKEN` first.
81+
some commands will require you to set an environment variable named `PRIVATE_TOKEN` first.
7782

78-
> Private token is the personal access token to authenticate with the GitLab API.
83+
<Aside type="tip"> Private token is the personal access token to authenticate with the GitLab API.</Aside>
7984

8085
```console
8186
# set private token on Linux
8287
export PRIVATE_TOKEN=your_private_token
8388
# set private token on Windows
8489
set PRIVATE_TOKEN=your_private_token
85-
```
86-
87-
## What's next
88-
89-
- [Configuring the CLI](configuration)
90+
```

src/content/docs/project/code-of-conduct.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ further defined and clarified by project maintainers.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported by contacting the project team at <[email protected]>. All
62+
reported by contacting the project team.
63+
64+
We are currently working on a new COC team here at All Contributors so please bare with us as we rework our documentation and governance structures.
65+
66+
67+
All
6368
complaints will be reviewed and investigated and will result in a response that
6469
is deemed necessary and appropriate to the circumstances. The project team is
6570
obligated to maintain confidentiality concerning the reporter of an incident.

src/content/docs/project/contribute.md renamed to src/content/docs/project/contribute.mdx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ id: contribute
33
title: Contribute, and help us improve
44
sidebar_label: Help us Improve
55
---
6+
import { Aside } from '@astrojs/starlight/components';
7+
import { Picture } from "astro:assets";
8+
import editPage from '@assets/edit-this-page.png';
9+
import translating from '@assets/translating-xpath.png';
610

7-
> Call for translators! [We're looking for translators](https://github.com/all-contributors/all-contributors/issues/143) to help translate this spec for everyone!
11+
[![GitHub stars](https://img.shields.io/github/stars/all-contributors/all-contributors?style=social)](https://github.com/all-contributors/all-contributors)
12+
13+
<Aside type="tip">Call for translators! [We're looking for translators](https://github.com/all-contributors/all-contributors/issues/143) to help translate this spec for everyone!</Aside>
814

915
## Help improve the all-contributors documentation!
1016

@@ -20,12 +26,14 @@ If you're not used to it or are afraid to mistype a commit, you can run `npm run
2026

2127
## Editing Content
2228

23-
> **Pro Tip**: Every page has an _Edit_ button up the top, clicking this will take you straight to the GitHub source code for that page
29+
<Aside type="tip">Every page has an _Edit_ button up the top, clicking this will take you straight to the GitHub source code for that page</Aside>
2430

2531
Once on a file, click the 'pencil' icon to [easily edit the file inline](https://help.github.com/articles/editing-files-in-your-repository/)
26-
<div align="center">
27-
<img src="/images/edit-this-page.png" alt="Example on how to edit a page" width="800px" />
28-
</div>
32+
After making your changes, scroll to the bottom of the page to create a commit with your changes. You will want to create and commit these changes on a new branch in your fork of the repository.
33+
34+
After committing your changes, you can create a pull request to propose your changes to be merged into the main branch.
35+
36+
<Picture src={editPage} formats={['avif', 'webp']} alt="A screenshot that shows the GitHub interface with a file open focused on the pencil icon that allows you to edit the page." />
2937

3038
## Translations
3139

@@ -35,7 +43,8 @@ Our translations are managed through crowdin. You can help contribute by heading
3543
If you like, [comment on this issue](https://github.com/all-contributors/all-contributors/issues/143) to let us know you're helping or if you have any queries!
3644

3745
> When translating, anything that has the [XPATH](https://developer.mozilla.org/en-US/docs/Web/XPath) `@href`, `@src` etc mustn't be translated. Things like `code` should not be either. This will cause the project to 404. See the below image for an example:
38-
<img src="/images/translating-xpath.png" alt="Contribute to translating" />
46+
47+
<Picture src={translating} formats={['avif', 'webp']} alt="A screenshot that shows the GitHub interface with a file open focused on the pencil icon that allows you to edit the page." />
3948

4049
> However, it's recommended to translate any content that would contribute to a better comprehension like the comments in `code` tags _as long as_ it doesn't change the actual code since it only understands English.
4150
@@ -56,11 +65,7 @@ If you like, [comment on this issue](https://github.com/all-contributors/all-con
5665

5766
### Change deployments
5867

59-
After you translate strings in any given language, you won't see those changes appearing live until the `master` branch was updated followed by a successful deployment.
60-
61-
## Search
62-
63-
Search is by algolia, the configuration is at <https://github.com/algolia/docsearch-configs/blob/main/configs/all-contributors.json>
68+
After you translate strings in any given language, you won't see those changes appearing live until the `main` branch was updated followed by a successful deployment.
6469

6570
## Run the website locally:
6671

@@ -95,22 +100,16 @@ Once you have completed the above, you can launch a server locally that will bui
95100
### Make changes - linting your contribution
96101

97102
If you make changes to a markdown file in the site, then our linting action will
98-
check those changes. To run the linter yourself on a file locally:
99-
100-
First install markdownlint-cli:
103+
check those changes. To run the linter yourself locally on the documentation before submitting a PR use:
101104

102-
`npm i -g markdownlint-cli`
105+
`npm run lint`
103106

104-
Then run markdownlint on the file (or files) that you wish to check:
107+
You can also run it manually on specific files like this:
105108

106109
`markdownlint --fix "src/content/docs/contribute.md"`
107110

108-
Or you can run it on all files in the docs directory, like this:
109-
110-
`markdownlint --fix "src/content/docs/**.md"`
111-
112111
## Add yourself as a contributor
113112

114-
To add yourself to the table of contributors, follow the [bot usage instructions](../bot/usage) ;).
113+
To add yourself to the table of contributors, follow the [bot usage instructions](../../bot/usage).
115114

116115
[the crowdin project]: https://crowdin.com/project/all-contributors

0 commit comments

Comments
 (0)