Skip to content

Commit

Permalink
Merge pull request #2424 from dfinity/ulan/redirect-introduction
Browse files Browse the repository at this point in the history
Redirect 'Introduction' to 'What is IC'
  • Loading branch information
jessiemongeon1 authored Jan 31, 2024
2 parents 899cc94 + 7a6201c commit cef564e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/developer-docs/agents/javascript-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This guide covers connecting to ICP from JavaScript in a web browser. For more information about calling ICP from Node.js, please, refer to [this guide](nodejs.md).

If you are looking for an explanation of what an agent does, see the [agent overview](../index.md).
If you are looking for an explanation of what an agent does, see the [agent overview](index.md).

Smart contracts are able to define their own API's using the Candid Interface Declaration Language (IDL), and they will respond to calls through the public API.

Expand Down
15 changes: 0 additions & 15 deletions docs/developer-docs/index.md

This file was deleted.

12 changes: 7 additions & 5 deletions plugins/utils/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const redirects = `
/docs /docs/current/home
/docs/current/ /docs/current/home
/docs/current/concepts/bitcoin-integration /bitcoin-integration
/docs/current/developer-docs/ic-overview /docs/current/developer-docs/
/docs/current/developer-docs/ic-overview /docs/current/concepts/what-is-ic
/docs/current/developer-docs/production/computation-and-storage-costs /docs/current/developer-docs/gas-cost
/docs/current/developer-docs/deploy/computation-and-storage-costs /docs/current/developer-docs/gas-cost
/docs/current/ic-overview /docs/current/home
Expand Down Expand Up @@ -189,16 +189,18 @@ const redirects = `
/docs/current/developer-docs/integrations/https-outcalls /docs/current/developer-docs/integrations/https-outcalls/https-outcalls-how-to-use
/docs/current/developer-docs/security/index /docs/current/developer-docs/security/general-security-best-practices
/docs/current/developer-docs/security /docs/current/developer-docs/security/general-security-best-practices
/docs/current/developer-docs/integrations/index /docs/current/developer-docs/
/docs/current/developer-docs/integrations /docs/current/developer-docs/
/docs/current/developer-docs/integrations/index /docs/current/concepts/what-is-ic
/docs/current/developer-docs/integrations /docs/current/concepts/what-is-ic
/docs/current/developer-docs/setup/index /docs/current/developer-docs/setup/install/
/docs/current/developer-docs/setup /docs/current/developer-docs/setup/install/
/docs/current/developer-docs/setup/quickstart /docs/current/developer-docs/setup/install/
/docs/current/tutorials/index /docs/current/developer-docs/
/docs/current/tutorials/ /docs/current/developer-docs/
/docs/current/tutorials/index /docs/current/concepts/what-is-ic
/docs/current/tutorials/ /docs/current/concepts/what-is-ic
/docs/current/developer-docs/backend/eu-subnets /docs/current/developer-docs/backend/subnet-types
/docs/current/samples/* /docs/current/samples/overview
/docs/current/developer-docs/production/deploying-and-upgrading /docs/current/developer-docs/setup/deploy
/docs/current/developer-docs/index /docs/current/concepts/what-is-ic
/docs/current/developer-docs /docs/current/concepts/what-is-ic
`
.split(/[\r\n]+/)
.map((line) => line.trim().replace(/^#.*$/, "").trim())
Expand Down
1 change: 0 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const sidebars = {


build: [
"developer-docs/index",
{
type: "category",
label: "Getting started",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocsHome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DocsHomePage: FC = () => {
<p className="mb-0">
<Link
className="button-white button-with-icon"
href="/docs/current/developer-docs/"
href="/docs/current/concepts/what-is-ic"
>
Start building
<LinkArrowRight />
Expand Down

0 comments on commit cef564e

Please sign in to comment.