Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main Dec 29 #231

Merged
merged 5 commits into from
Dec 29, 2023
Merged
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
2 changes: 1 addition & 1 deletion docs/smart-contracts/data-types/complex-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $$O(\log_2 (size))$$, whereas for a right comb, it's $$O(size)$$.

### Implementation details

- Michelson: [Operations on pairs and right combs](https://archetype-lang.org/docs/reference/instructions/operation)
- Michelson: [Operations on pairs and right combs](https://tezos.gitlab.io/active/michelson.html#operations-on-pairs-and-right-combs)
- LIGO: [Tuples](https://ligolang.org/docs/language-basics/sets-lists-tuples#tuples)
- SmartPy: [Tuples and Records](https://smartpy.io/manual/syntax/tuples-and-records)
- Archetype: [Composite types](https://archetype-lang.org/docs/language-basics/composite#tuple), [Tuple](https://archetype-lang.org/docs/reference/types#tuple)
Expand Down
3 changes: 1 addition & 2 deletions docs/smart-contracts/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
title: Sample smart contracts
author: "Tim McMackin"
last_update:
date: 19 October 2023
date: 26 December 2023
---

Here are some places to find sample smart contacts:

- Completed applications from the tutorials are in the repository https://github.com/trilitech/tutorial-applications
- For conceptual examples of contracts, see https://opentezos.com/smart-contracts/simplified-contracts/
- For examples of contracts that manage FA2 tokens, see https://github.com/trilitech/tqtezos-smart-contracts
- For examples of contracts in LIGO, see https://packages.ligolang.org/contracts
- For examples of contracts in Archetype, see https://archetype-lang.org/docs/templates/overview
- For examples of contracts in SmartPy, see https://smartpy.io/guides/examples/
28 changes: 28 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
const math = require('remark-math');
const katex = require('rehype-katex');

// script-src causes development builds to fail
// But unsafe-eval should NOT be in production builds
const scriptSrc = process.env.NODE_ENV === 'development' ?
`'self' 'unsafe-inline' 'unsafe-eval' https://*.googletagmanager.com;`
: `'self' 'unsafe-inline' https://*.googletagmanager.com;`;

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Tezos Developer Documentation',
Expand All @@ -23,6 +29,28 @@ const config = {
mermaid: true,
},

headTags: [
{
tagName: 'meta',
attributes: {
'http-equiv': 'Content-Security-Policy',
content: `
default-src 'none';
base-uri 'self';
manifest-src 'self';
script-src ${scriptSrc}
style-src 'self' 'unsafe-inline';
font-src 'self';
img-src 'self' https://*.googletagmanager.com https://*.google-analytics.com data:;
media-src 'self';
form-action 'self';
connect-src 'self' https://*.algolia.net https://*.algolianet.com https://*.googletagmanager.com https://*.google-analytics.com https://*.analytics.google.com;
frame-src https://tezosbot.vercel.app https://calendly.com/ lucid.app;
`,
},
},
],

themes: ['@docusaurus/theme-mermaid'],

presets: [
Expand Down
Loading