Skip to content

Commit

Permalink
Remove links to old docs
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <simon.macdonald@gmail.com>
  • Loading branch information
macdonst committed Aug 26, 2024
1 parent 9dff703 commit 7e6110f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
12 changes: 6 additions & 6 deletions src/commands/generate/_create/events/handlers.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
let copy = {
en: {
view_docs: 'View documentation at: https://docs.begin.com/en/event-functions/provisioning',
view_docs_js: 'View documentation at: https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events',
view_docs_python: 'View documentation at: https://arc.codes/docs/en/reference/runtime-helpers/python#arc.events',
}
}

let deno = lang => `// ${copy[lang].view_docs}
let deno = lang => `// ${copy[lang].view_docs_js}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}
`

let node = lang => `// ${copy[lang].view_docs}
let node = lang => `// ${copy[lang].view_docs_js}
export async function handler (event) {
console.log(JSON.stringify(event, null, 2))
return
}
`

let ruby = lang => `# ${copy[lang].view_docs}
def handler(event)
let ruby = () => `def handler(event)
puts event
true
end
`

let python = lang => `# ${copy[lang].view_docs}
let python = lang => `# ${copy[lang].view_docs_python}
def handler(event, context):
print(event)
return True
Expand Down
8 changes: 0 additions & 8 deletions src/commands/generate/_create/http/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ function html (lang, handlerFile) {
${handlerFile}
</code>
</div>
<div>
<p class="margin-bottom-8">
${copy[lang].view_docs}
</p>
<code>
<a class="color-grey color-black-link" href="https://docs.begin.com">https://docs.begin.com</a>
</code>
</div>
</div>
</div>
</body>
Expand Down
18 changes: 4 additions & 14 deletions src/commands/generate/_create/scheduled/handlers.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
let copy = {
en: {
view_docs: 'View documentation at: https://docs.begin.com/en/scheduled-functions/provisioning',
}
}

let deno = lang => `// ${copy[lang].view_docs}
export async function handler (event: object) {
let deno = () => `export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}
`

let node = lang => `// ${copy[lang].view_docs}
export async function handler (event) {
let node = () => `export async function handler (event) {
console.log(JSON.stringify(event, null, 2))
return
}
`

let ruby = lang => `# ${copy[lang].view_docs}
def handler(event)
let ruby = () => `def handler(event)
puts event
true
end
`

let python = lang => `# ${copy[lang].view_docs}
def handler(event, context):
let python = () => `def handler(event, context):
print(event)
return True
`
Expand Down

0 comments on commit 7e6110f

Please sign in to comment.