Skip to content

Commit

Permalink
init commit post-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dghelm committed Jan 26, 2023
0 parents commit 9f137d3
Show file tree
Hide file tree
Showing 401 changed files with 44,032 additions and 0 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
insert_final_newline = true
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALGOLIA_APP_ID=I9A62UQS9Z
ALGOLIA_WRITE_API_KEY=
ALGOLIA_INDEX_NAME=docs-test
21 changes: 21 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dist
.cache
.test
node_modules
.github
.changeset
src/features/redirects/redirects.json
scripts/reference/chainsToBe.json
src/scripts/reference/linkNameSymbol.json
src/scripts/reference/chains.json
scripts/reference/chains.json
scripts/**/*.js
data-source
typechain-types
.eleventy
public/snippets
public/search-index.json
public/samples
package.json
package-lock.json
vercel.json
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["standard", "eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "prettier"],
rules: {
"prettier/prettier": [2],
},
}
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
body:
- attributes:
value: 'Thanks for taking the time to help out make Scroll Documentation better!'
type: markdown
- attributes:
description: 'A clear and concise description of what the bug is.'
label: 'Describe the bug'
placeholder: 'Tell us what you see!'
id: describe-bug
type: textarea
validations:
required: true
- attributes:
description: 'Steps to reproduce the behavior (If applicable, add screenshots to help explain your problem).'
label: 'To Reproduce'
value: |
1. Go to '...'
2. Click on '....'
3. See error
id: to-reproduce
type: textarea
validations:
required: true
- attributes:
description: 'Copy the links of the concerned pages.'
label: URLs
value: |
- https://docs.scroll.io/..
- ...
id: urls
type: textarea
validations:
required: true
- attributes:
description: 'A clear and concise description of what you expected to happen.'
label: 'Expected behavior'
id: expected-behavior
type: textarea
validations:
required: false
- attributes:
description: 'Add any other context about the problem here.'
label: 'Additional context'
id: additional-context
type: textarea
validations:
required: false
description: 'File a bug report'
labels:
- bug
- triage
name: 'Bug Report'
title: '[Bug]: <your-title-here>'
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/enhance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
body:
- attributes:
value: 'Thanks for taking the time to help out make Scroll Documentation better!'
type: markdown
- attributes:
description: 'A clear and concise description of what would you like us to improve.'
label: 'What would you like us to improve?'
id: to-improve
type: textarea
validations:
required: true
- attributes:
description: 'A clear and concise description of how important for the users it is?'
label: 'How important it is?'
id: importance
type: textarea
validations:
required: true
description: 'Enhancement of existing docs'
labels:
- enhancement
- triage
name: 'Enhancement'
title: '[Enhancement]: <your-title-here>'
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/new_content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
body:
- attributes:
value: 'Thanks for taking the time to help out make Scroll Documentation better!'
type: markdown
- attributes:
description: 'A clear and concise description of what is missing.'
label: 'What would you like us to add?'
id: what-is-missing
type: textarea
validations:
required: true
- attributes:
description: 'A clear and concise description of how important for the users it is?'
label: 'How important it is?'
id: importance
type: textarea
validations:
required: true
description: 'File a new content request'
labels:
- new content
- triage
name: 'New Content'
title: '[New Content]: <your-title-here>'
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**IMPORTANT: Please do not create a Pull Request without creating an issue first.Any change needs to be discussed before proceeding.**

## Closing issues

<!-- Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). -->

closes #ISSUE_NUMBER_GOES_HERE

...

## Description

<!-- Please provide enough information so that others can review your pull request: -->

...

## Changes

<!--Explain the **details** for making this change. What existing problem does the pull request solve? -->

- High level
- changes that
- you made
- ...
25 changes: 25 additions & 0 deletions .github/workflows/update-algolia-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update algolia index

on: [push]

jobs:
update-prod-index:
if: ${{ github.ref == 'refs/heads/main' }}
name: Update algolia index
runs-on: ubuntu-latest
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_WRITE_API_KEY: ${{ secrets.ALGOLIA_WRITE_API_KEY }}
ALGOLIA_INDEX_NAME: docs-ui
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Install Dependencies
run: npm i
- name: Build
run: npm run build
- name: Update index
run: npm run update-algolia-index
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# build output
dist/

# dependencies
node_modules/

temp/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# Docs scripts files
data-source/
addresses.json
scripts/*.js
src/config/*.js

public/search-index.json

*TOBE.json
.test/
typechain-types/

.tmp

.cache
.vscode
4 changes: 4 additions & 0 deletions .husky/clear
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ""
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.16.0
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist
.cache
.test
node_modules
.github
.changeset
scripts/reference/chainsToBe.json
scripts/**/*.js
data-source
typechain-types
.eleventy
public/snippets
public/search-index.json
19 changes: 19 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 120,
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
}
]
}
9 changes: 9 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"compiler-version": ["error", ">=0.4.0"],
"func-visibility": ["warn", { "ignoreConstructors": true }]
}
}
4 changes: 4 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
data-source
scripts
src
51 changes: 51 additions & 0 deletions .temp.1674770289347.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { defineConfig } from "astro/config"
import preact from "@astrojs/preact"
import react from "@astrojs/react"
import { astroCallouts } from "./integrations/astro-callouts"
import { solidityRemixCode } from "./integrations/solidity-remix"
import { youtubeEmbed } from "./integrations/youtube-embed"
import mdx from "@astrojs/mdx"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import sitemap from "@astrojs/sitemap"

import tailwind from "@astrojs/tailwind"

// https://astro.build/config
export default defineConfig({
site: "https://docs.scroll.io",
legacy: {
astroFlavoredMarkdown: true,
},
integrations: [
preact({
compat: true,
}),
sitemap({
changefreq: "daily",
}),
astroCallouts(),
solidityRemixCode(),
youtubeEmbed(),
mdx(),
tailwind({
// Example: Disable injecting a basic `base.css` import on every page.
// Useful if you need to define and/or import your own custom `base.css`.
config: { applyBaseStyles: false },
}),
],
markdown: {
drafts: true,
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: "prepend",
},
],
],
syntaxHighlight: "prism",
extendDefaultPlugins: true,
},
})
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.16.0
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @dwightjl @ritika-b @aelmanaa
Loading

0 comments on commit 9f137d3

Please sign in to comment.