Skip to content

Commit ad62313

Browse files
committed
moved imports to another folder
1 parent 10c2243 commit ad62313

18 files changed

+71
-11
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
const { step } = Astro.props;
3+
const activeStep = typeof step === 'number' ? step : Number(step);
4+
5+
const steps = [
6+
{
7+
label: 'Adding your first repository',
8+
href: '/getting-started/codacy-quickstart#adding-your-first-repository',
9+
},
10+
{
11+
label: 'Configuring your repository',
12+
href: '/getting-started/configuring-your-repository#configuring-your-repository',
13+
},
14+
{
15+
label: 'Integrating Codacy with your Git workflow',
16+
href: '/getting-started/integrating-codacy-with-your-git-workflow#integrating-codacy-with-your-git-workflow',
17+
},
18+
];
19+
---
20+
21+
<nav class="nav-multistep" aria-label="Guided path">
22+
<p class="nav-multistep__label">This page is part of the following guided path:</p>
23+
<ol class="nav-multistep__list">
24+
{steps.map((item, index) => (
25+
<li class:list={['nav-multistep__step', index === activeStep && 'nav-multistep__step--active']}>
26+
{index === activeStep ? <span class="nav-multistep__current">{item.label}</span> : <a href={item.href}>{item.label}</a>}
27+
</li>
28+
))}
29+
</ol>
30+
</nav>
31+
32+
<style>
33+
.nav-multistep {
34+
margin: 1rem 0 1.25rem;
35+
padding: 1rem;
36+
border: 1px solid var(--sl-color-gray-5);
37+
border-radius: 0.75rem;
38+
background: var(--sl-color-gray-6);
39+
}
40+
.nav-multistep__label {
41+
margin: 0 0 0.75rem;
42+
color: var(--sl-color-gray-2);
43+
font-size: var(--sl-text-sm);
44+
}
45+
.nav-multistep__list {
46+
margin: 0;
47+
padding-left: 1.25rem;
48+
}
49+
.nav-multistep__step {
50+
margin: 0.25rem 0;
51+
}
52+
.nav-multistep__step--active {
53+
font-weight: 600;
54+
}
55+
.nav-multistep__current {
56+
color: var(--sl-color-white);
57+
}
58+
</style>
59+

new-docs/src/content/docs/getting-started/codacy-quickstart.md renamed to new-docs/src/content/docs/getting-started/codacy-quickstart.mdx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description: Set up Codacy to automatically analyze your source code and identif
44
nav_step: 0
55
---
66

7+
import NavMultistep from '../../../components/NavMultistep.astro';
8+
79
Codacy is an automated code quality and coverage platform that analyzes your source code and identifies issues as you go, helping your team ship robust software by scanning over 40 programming languages, such as JavaScript, Python, Java, C#, and PHP.
810

911
Check out our product demo for an overview of Codacy's main features (recorded on May 13, 2024):
@@ -19,40 +21,39 @@ By integrating with your Git provider, Codacy keeps track of your team’s work,
1921

2022
## Adding your first repository
2123

22-
{% include-markdown "../../../assets/includes/nav-multistep-quickstart.md" %}
24+
<NavMultistep step={0} />
2325

2426
To get started, head to [<span class="skip-vale">codacy.com</span>](https://www.codacy.com/) and click **Start free**. Then, follow these steps:
2527

2628
1. [Signing up](#signing-up)
2729
1. [Choosing an organization](#choosing-organization)
2830
1. [Adding repositories](#adding-repositories)
2931

30-
## 1. Signing up
31-
{: #signing-up}
32+
<h2 id="signing-up">1. Signing up</h2>
3233

3334
Sign up with a Git provider such as GitHub, GitLab, or Bitbucket. This links your Codacy user with your Git provider user, making it easier to add repositories to Codacy and invite your teammates.
3435

3536
Codacy will request access to your Git provider during the authorization flow. [Check the permissions that Codacy requires and why](which-permissions-does-codacy-need-from-my-account).
3637

37-
## 2. Choosing an organization
38-
{: #choosing-organization}
38+
<h2 id="choosing-organization">2. Choosing an organization</h2>
3939

4040
Now, you'll need to add or join the organizations that contain your repositories. The organization with the same name as your Git provider username contains your personal repositories. Read more about [organizations on Codacy](../../organizations/what-are-organizations).
4141

4242
To start adding your repositories, select one of the organizations.
4343

44-
!!! note
45-
If you can't see the organization you're looking for, [follow these troubleshooting instructions](../faq/troubleshooting/why-cant-i-see-my-organization).
44+
:::note
45+
If you can't see the organization you're looking for, [follow these troubleshooting instructions](../faq/troubleshooting/why-cant-i-see-my-organization).
46+
:::
4647

4748
![Choosing an organization](../organizations/images/organization-add.png)
4849

49-
## 3. Adding repositories
50-
{: #adding-repositories}
50+
<h2 id="adding-repositories">3. Adding repositories</h2>
5151

5252
Next, add the repositories that you wish to analyze. Codacy begins an initial analysis as soon as you add a repository and sets everything up to ensure your next commits on that repository are analyzed.
5353

54-
!!! note
55-
You can only add repositories on Codacy if you have the [necessary permissions on your Git provider](../organizations/roles-and-permissions-for-organizations).
54+
:::note
55+
You can only add repositories on Codacy if you have the [necessary permissions on your Git provider](../organizations/roles-and-permissions-for-organizations).
56+
:::
5657

5758
![Adding repositories](../organizations/images/repositories-add.png)
5859

new-docs/src/assets/includes/admin-access-control-info.md renamed to new-docs/src/content/includes/admin-access-control-info.md

File renamed without changes.
File renamed without changes.

new-docs/src/assets/includes/api-example-pagination-important.md renamed to new-docs/src/content/includes/api-example-pagination-important.md

File renamed without changes.
File renamed without changes.

new-docs/src/assets/includes/client-side-tool-instructions.md renamed to new-docs/src/content/includes/client-side-tool-instructions.md

File renamed without changes.

new-docs/src/assets/includes/coverage-github-accept-permissions.md renamed to new-docs/src/content/includes/coverage-github-accept-permissions.md

File renamed without changes.

0 commit comments

Comments
 (0)