Skip to content

Commit 5827d5d

Browse files
committed
docs: add redirects from old function URLs to new reference locations
- Add redirects for all template functions moved to /functions/template/ - Add redirects for all YAML functions moved to /functions/yaml/ - Add redirect for main functions index page - Ensure backward compatibility for existing documentation links
1 parent 6ce6691 commit 5827d5d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

website/docusaurus.config.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,70 @@ const config = {
4949
{
5050
from: '/reference/terraform-limitations',
5151
to: '/introduction/why-atmos'
52+
},
53+
// Redirects for template functions moved to /functions/template/
54+
{
55+
from: '/core-concepts/stacks/templates/functions/atmos.Component',
56+
to: '/functions/template/atmos.Component'
57+
},
58+
{
59+
from: '/core-concepts/stacks/templates/functions/atmos.GomplateDatasource',
60+
to: '/functions/template/atmos.GomplateDatasource'
61+
},
62+
{
63+
from: '/core-concepts/stacks/templates/functions/atmos.Store',
64+
to: '/functions/template/atmos.Store'
65+
},
66+
// Redirects for YAML functions moved to /functions/yaml/
67+
{
68+
from: '/core-concepts/stacks/templates/functions/env',
69+
to: '/functions/yaml/env'
70+
},
71+
{
72+
from: '/core-concepts/stacks/templates/functions/exec',
73+
to: '/functions/yaml/exec'
74+
},
75+
{
76+
from: '/core-concepts/stacks/templates/functions/include',
77+
to: '/functions/yaml/include'
78+
},
79+
{
80+
from: '/core-concepts/stacks/templates/functions/include.raw',
81+
to: '/functions/yaml/include.raw'
82+
},
83+
{
84+
from: '/core-concepts/stacks/templates/functions/repo-root',
85+
to: '/functions/yaml/repo-root'
86+
},
87+
{
88+
from: '/core-concepts/stacks/templates/functions/store.get',
89+
to: '/functions/yaml/store.get'
90+
},
91+
{
92+
from: '/core-concepts/stacks/templates/functions/store',
93+
to: '/functions/yaml/store'
94+
},
95+
{
96+
from: '/core-concepts/stacks/templates/functions/template',
97+
to: '/functions/yaml/template'
98+
},
99+
{
100+
from: '/core-concepts/stacks/templates/functions/terraform.output',
101+
to: '/functions/yaml/terraform.output'
102+
},
103+
{
104+
from: '/core-concepts/stacks/templates/functions/terraform.state',
105+
to: '/functions/yaml/terraform.state'
106+
},
107+
// Redirect for the main functions index page
108+
{
109+
from: '/core-concepts/stacks/templates/functions',
110+
to: '/functions'
111+
},
112+
// Alternative paths that might have been used
113+
{
114+
from: '/core-concepts/template-functions',
115+
to: '/functions'
52116
}
53117
],
54118
},

0 commit comments

Comments
 (0)