Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 37 additions & 0 deletions app/terra/[...slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { permanentRedirect } from "next/navigation";

export async function generateStaticParams() {
return [
{ slug: ["appstream"] },
{ slug: ["autoupdate"] },
{ slug: ["contributing"] },
{ slug: ["faq"] },
{ slug: ["guidelines"] },
{ slug: ["index"] },
{ slug: ["infrastructure"] },
{ slug: ["installing"] },
{ slug: ["lifecycle"] },
{ slug: ["policies"] },
{ slug: ["srpm"] },
];
}

export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;

const slugKey = slug.toString();
const REDIRECT_MAP: Record<string, string> = {
appstream: `https://docs.terrapkg.com/contributing/${slug}`,
autoupdate: `https://docs.terrapkg.com/contributing/${slug}`,
contributing: `https://docs.terrapkg.com/contributing/${slug}`,
guidelines: `https://docs.terrapkg.com/contributing/${slug}`,
policies: `https://docs.terrapkg.com/contributing/${slug}`,
srpm: `https://docs.terrapkg.com/contributing/${slug}`,
installing: `https://docs.terrapkg.com/usage/${slug}`,
lifecycle: `https://docs.terrapkg.com/usage/${slug}`,
infrastructure: `https://docs.terrapkg.com/general/${slug}`,
faq: `https://docs.terrapkg.com/reference/${slug}`,
};

permanentRedirect(REDIRECT_MAP[slugKey] ?? "https://docs.terrapkg.com");
}
4 changes: 2 additions & 2 deletions content/docs/andaman/mechanisms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The following static modules (built into AndaX directly) are also available:
- `anda::rpmbuild`
- `anda::cfg`

Most if not all of the functions in the above static modules are well-documented in the [Terra documentation](/terra/autoupdate).
Most if not all of the functions in the above static modules are well-documented in the [Terra documentation](https://docs.terrapkg.com/contributing/autoupdate).

You can pass labels into the AndaX executor during with the `--labels command-line argument`. A label is a key-value pair that can be used to tag packages (is it a nightly package?), adding special variables, etc.

Expand All @@ -70,7 +70,7 @@ Which will be parsed to:

## Automatic Updates

See [Terra autoupdate documentation](/terra/autoupdate) for supported functions in AndaX
See [Terra autoupdate documentation](https://docs.terrapkg.com/contributing/autoupdate) for supported functions in AndaX

Anda supports automatically updating packages via the `anda update` command.
The command finds all the projects with an `update.rhai` in the same directory.
Expand Down
2 changes: 1 addition & 1 deletion content/docs/rpm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ to [Terra], packaging a few apps you find possibly useful to other people using

We hope you find this document useful.

[Terra]: https://terra.fyralabs.com
[Terra]: https://terrapkg.com
4 changes: 2 additions & 2 deletions content/docs/rpm/macros.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Technically, there are 3 types of "macros":
This document only covers the first type.

<Callout type="info">
This page does not cover Terra-specific (Anda SRPM) macros. For documentation on these macros, see [here](../terra/srpm). For documentation on our AppStream MetaInfo macros, see [here](../terra/appstream).
This page does not cover Terra-specific (Anda SRPM) macros. For documentation on these macros, see [here](https://docs.terrapkg.com/contributing/srpm). For documentation on our AppStream MetaInfo macros, see [here](https://docs.terrapkg.com/contributing/appstream).
</Callout>

<Callout title="Macro Argument Syntax" icon="‼️">
Expand Down Expand Up @@ -978,7 +978,7 @@ Parameterized as `%patch(b:p:P:REz:)`.

This list is NOT exhaustive. Some macros are not built-in. If your
machine does not come with them, try `dnf install 'rpm_macro(macro_name)'{:sh}`.
Macros with the '(Terra only)' warning are part of the `anda-srpm-macros` package in Terra, documentation for these can be found on the [Terra SRPM devdocs page](https://developer.fyralabs.com/terra/srpm#directories).
Macros with the '(Terra only)' warning are part of the `anda-srpm-macros` package in Terra, documentation for these can be found on the [Terra SRPM devdocs page](https://docs.terrapkg.com/contributing/srpm#directories).

```
/
Expand Down
208 changes: 0 additions & 208 deletions content/docs/terra/appstream.mdx

This file was deleted.

Loading