Skip to content

Commit a683473

Browse files
authored
llms.txt introduction (#2967)
* add file generator and template for common content * add chain specific data * add chain specific data for stability, shibarium, scroll and zilliqa * fix ts * add instructions about contract sources
1 parent 7309e1c commit a683473

File tree

10 files changed

+1741
-2
lines changed

10 files changed

+1741
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/public/static/og_image.png
2323
/public/sitemap.xml
2424
/public/robots.txt
25+
/public/llms.txt
2526
/analyze
2627

2728
# production

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ WORKDIR /multichain-config-generator
5151
COPY ./deploy/tools/multichain-config-generator/package.json ./deploy/tools/multichain-config-generator/yarn.lock ./
5252
RUN yarn --frozen-lockfile --network-timeout 100000
5353

54+
### llms.txt GENERATOR
55+
# Install dependencies
56+
WORKDIR /llms-txt-generator
57+
COPY ./deploy/tools/llms-txt-generator/package.json ./deploy/tools/llms-txt-generator/yarn.lock ./
58+
RUN yarn --frozen-lockfile --network-timeout 100000
59+
5460

5561
# *****************************
5662
# ****** STAGE 2: Build *******
@@ -117,6 +123,11 @@ COPY --from=deps /sitemap-generator/node_modules ./deploy/tools/sitemap-generato
117123
COPY --from=deps /multichain-config-generator/node_modules ./deploy/tools/multichain-config-generator/node_modules
118124
RUN cd ./deploy/tools/multichain-config-generator && yarn build
119125

126+
### llms.txt GENERATOR
127+
# Copy dependencies and source code, then build
128+
COPY --from=deps /llms-txt-generator/node_modules ./deploy/tools/llms-txt-generator/node_modules
129+
RUN cd ./deploy/tools/llms-txt-generator && yarn build
130+
120131

121132
# *****************************
122133
# ******* STAGE 3: Run ********
@@ -146,9 +157,10 @@ COPY --from=builder /app/package.json ./package.json
146157
COPY --from=builder /app/deploy/tools/envs-validator/index.js ./envs-validator.js
147158
COPY --from=builder /app/deploy/tools/feature-reporter/index.js ./feature-reporter.js
148159
COPY --from=builder /app/deploy/tools/multichain-config-generator/dist ./deploy/tools/multichain-config-generator/dist
160+
COPY --from=builder /app/deploy/tools/llms-txt-generator/dist ./deploy/tools/llms-txt-generator/dist
149161

150162
# Copy scripts
151-
## Entripoint
163+
## Entrypoint
152164
COPY --chmod=755 ./deploy/scripts/entrypoint.sh .
153165
## ENV validator and client script maker
154166
COPY --chmod=755 ./deploy/scripts/validate_envs.sh .

deploy/scripts/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ node ./deploy/tools/multichain-config-generator/dist/index.js
7070
# Generate sitemap.xml and robots.txt files
7171
./sitemap_generator.sh
7272

73+
# Generate llms.txt file
74+
node ./deploy/tools/llms-txt-generator/dist/index.js
75+
7376
# Print list of enabled features
7477
node ./feature-reporter.js
7578

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
*.log
4+
.DS_Store

0 commit comments

Comments
 (0)