Skip to content

Commit 4e426bd

Browse files
committed
renamed site to docs
1 parent 026bf9d commit 4e426bd

File tree

122 files changed

+153
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+153
-152
lines changed

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"dictionaries": [
2525
"project-words",
2626
"lockfile-words-root",
27-
"lockfile-words-site"
27+
"lockfile-words-docs"
2828
]
2929
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,40 +50,40 @@ jobs:
5050
with:
5151
node-version: '20'
5252
cache: 'pnpm'
53-
cache-dependency-path: 'site/pnpm-lock.yaml'
53+
cache-dependency-path: 'docs/pnpm-lock.yaml'
5454

55-
- name: Install site dependencies
55+
- name: Install docs dependencies
5656
run: |
57-
cd site && pnpm install --frozen-lockfile
57+
cd docs && pnpm install --frozen-lockfile
5858
5959
- name: Setup Pages
6060
uses: actions/configure-pages@v4
6161
with:
62-
static_site_generator: next
62+
static_docs_generator: next
6363

6464
- name: Download coverage artifacts
6565
uses: dawidd6/action-download-artifact@v3 # cspell:ignore dawidd6
6666
with:
6767
workflow: test.yml
6868
workflow_conclusion: success
6969
name: coverage-ruby3.4-rails8.0
70-
path: site/public/coverage/
70+
path: docs/public/coverage/
7171

7272
- name: Generate YARD documentation
7373
run: |
74-
bundle exec yard doc --output-dir=site/public/yard
74+
bundle exec yard doc --output-dir=docs/public/yard
7575
7676
- name: Export TypeScript types
7777
run: |
7878
scripts/generate_structs.rb
7979
8080
- name: Build with Next.js
81-
run: cd site && pnpm run build
81+
run: cd docs && pnpm run build
8282

8383
- name: Upload artifact
8484
uses: actions/upload-pages-artifact@v3
8585
with:
86-
path: ./site/out
86+
path: ./docs/out
8787

8888
deploy:
8989
environment:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
exit 1
236236
fi
237237
238-
- name: Generate site exports (enums/structs/keys)
238+
- name: Generate docs exports (enums/structs/keys)
239239
run: scripts/generate_structs.rb
240240

241241
- name: Clone terraform-provider-logstruct repository

.github/workflows/test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
cache: pnpm
3939
cache-dependency-path: |
4040
pnpm-lock.yaml
41-
site/pnpm-lock.yaml
41+
docs/pnpm-lock.yaml
4242
4343
- name: Install npm packages
4444
run: |
45-
# Install root and site pnpm dependencies
45+
# Install root and docs pnpm dependencies
4646
pnpm install --frozen-lockfile
47-
cd site && pnpm install --frozen-lockfile && cd ..
47+
cd docs && pnpm install --frozen-lockfile && cd ..
4848
4949
- name: Generate CSpell dictionaries from package lockfiles
5050
run: |
@@ -89,7 +89,7 @@ jobs:
8989
- name: Sorbet (Typecheck)
9090
run: scripts/typecheck.sh
9191

92-
site:
92+
docs:
9393
name: 'Next.js Site Tests'
9494
runs-on: ubuntu-22.04
9595
steps:
@@ -101,7 +101,7 @@ jobs:
101101
ruby-version: '.ruby-version'
102102
bundler-cache: true
103103

104-
- name: Setup Node.js (site)
104+
- name: Setup Node.js (docs)
105105
uses: actions/setup-node@v4
106106
with:
107107
node-version: 20
@@ -111,27 +111,27 @@ jobs:
111111
with:
112112
version: latest
113113

114-
- name: Enable pnpm cache (site)
114+
- name: Enable pnpm cache (docs)
115115
uses: actions/setup-node@v4
116116
with:
117117
node-version: 20
118118
cache: pnpm
119-
cache-dependency-path: site/pnpm-lock.yaml
119+
cache-dependency-path: docs/pnpm-lock.yaml
120120

121-
- name: Install site dependencies
122-
run: cd site && pnpm install --frozen-lockfile
121+
- name: Install docs dependencies
122+
run: cd docs && pnpm install --frozen-lockfile
123123

124124
- name: Export TypeScript types from LogStruct
125125
run: |
126126
scripts/generate_structs.rb
127127
128128
- name: TypeScript type checking
129129
run: |
130-
cd site && pnpm exec tsc --noEmit
130+
cd docs && pnpm exec tsc --noEmit
131131
132132
- name: Run TypeScript tests
133133
run: |
134-
cd site && pnpm test
134+
cd docs && pnpm test
135135
136136
pilot:
137137
name: 'Pilot Test: Ruby 3.4 / Rails 8.0'
@@ -173,7 +173,7 @@ jobs:
173173
retention-days: 5
174174
include-hidden-files: true
175175

176-
# Merges /coverage and /coverage_rails into /site/public/coverage/
176+
# Merges /coverage and /coverage_rails into /docs/public/coverage/
177177
- name: Merge coverage reports
178178
run: scripts/merge_coverage.sh
179179

@@ -187,7 +187,7 @@ jobs:
187187
with:
188188
name: coverage-ruby3.4-rails8.0
189189
path: |
190-
site/public/coverage/
190+
docs/public/coverage/
191191
retention-days: 5
192192

193193
matrix:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Source code references
1717
/reference
1818

19-
# Next.js site ignore rules are in ./site/.gitignore
19+
# Next.js docs ignore rules are in ./docs/.gitignore
2020

2121
# CSpell generated wordlists (from package lockfiles)
2222
.cspell/generated-*.txt

.prettierignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
sorbet/
33
tasks/
44

5-
site/.next
6-
site/out
5+
docs/.next
6+
docs/out
77

8-
site/generated/
8+
docs/generated/
99

10-
site/public/coverage
11-
site/public/yard
10+
docs/public/coverage
11+
docs/public/yard
1212

1313
pnpm-lock.yaml

.yardopts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--markup-provider=redcarpet
55
--readme=README.md
66
--title=LogStruct API Documentation
7-
--output-dir=site/public/api
7+
--output-dir=docs/public/api
88
--plugin sorbet
99
'lib/**/*.rb'
1010
- README.md

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
- Debug a specific test: Add `debugger` statements (developer only)
2727
- Run Rails integration tests: `scripts/rails_tests.sh`
2828
- Merge coverage reports: `scripts/merge_coverage.sh`
29-
- Run Next.js TypeScript tests: `cd site && npm test`
29+
- Run Next.js TypeScript tests: `cd docs && npm test`
3030

3131
### Quality Commands
3232

3333
- Ruby typecheck: `scripts/typecheck.sh`
34-
- Next.js typecheck: `cd site && pnpm exec tsc --noEmit`
34+
- Next.js typecheck: `cd docs && pnpm exec tsc --noEmit`
3535
- Lint Ruby: `bin/rubocop`
3636
- Format Ruby: `bin/rubocop -A`
3737
- Format JS/TS/JSON: `scripts/prettier.sh --write`

INTEGRATIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**Purpose**
22

3-
- Document how to add a new first‑class integration to LogStruct so it’s consistent, type‑safe, well‑tested, and shows up automatically in the docs site with an auto‑generated example log.
3+
- Document how to add a new first‑class integration to LogStruct so it’s consistent, type‑safe, well‑tested, and shows up automatically in the docs docs with an auto‑generated example log.
44

55
**High‑Level Flow**
66

@@ -9,7 +9,7 @@
99
- Implement the integration under `lib/log_struct/integrations/…` to produce that log type.
1010
- Add the dev dependency for the third‑party gem and generate RBIs with Tapioca.
1111
- Add tests (unit + behavior) under `test/log_struct/integrations` and (if needed) `test/log_struct/log`.
12-
- Add a short entry in the docs metadata (`site/lib/integration-helpers.ts`). The Integrations page will render it automatically via `AllLogTypes`.
12+
- Add a short entry in the docs metadata (`docs/lib/integration-helpers.ts`). The Integrations page will render it automatically via `AllLogTypes`.
1313
- Run type export to update the docs’ TypeScript types.
1414

1515
**Conventions**
@@ -99,7 +99,7 @@
9999

100100
7. Docs
101101
- No custom sections in the Integrations page.
102-
- The Integrations page lists all `AllLogTypes` with titles/descriptions from `site/lib/integration-helpers.ts`.
102+
- The Integrations page lists all `AllLogTypes` with titles/descriptions from `docs/lib/integration-helpers.ts`.
103103
- Add an entry to `getLogTypeInfo` for your new log type (title, concise description, optional `configuration_code: 'integrations_configuration'`).
104104
- Run the type export to regenerate the docs’ TypeScript assets so example logs render:
105105
- `ruby scripts/generate_structs.rb`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $ gem install logstruct
4444

4545
LogStruct is designed to be highly opinionated and work out of the box with minimal configuration.
4646

47-
Please see the [documentation](https://logstruct.com/site/configuration/) for configuration options.
47+
Please see the [documentation](https://logstruct.com/docs/configuration/) for configuration options.
4848

4949
### Important Notes on Integration
5050

@@ -83,7 +83,7 @@ In addition to the built‑in, strictly typed log structures (Request, Error, SQ
8383
- Fix your `source` to a constant (e.g., return the string `"payments"`), and restrict `event` with a `T::Enum` (e.g., `processed|failed|refunded`).
8484
- The `LogStruct.info` signature accepts either the internal `CommonFields` (for built‑ins) or your public custom type, so you keep type safety at the call site.
8585

86-
See the docs page for a complete example: [Sorbet Types → Custom Typed Logs](https://logstruct.com/site/sorbet-types#custom-log-classes).
86+
See the docs page for a complete example: [Sorbet Types → Custom Typed Logs](https://logstruct.com/docs/sorbet-types#custom-log-classes).
8787

8888
## License
8989

0 commit comments

Comments
 (0)