Skip to content

Commit 3a4a5ba

Browse files
committed
optional deps
1 parent 7af668b commit 3a4a5ba

File tree

4 files changed

+610
-164
lines changed

4 files changed

+610
-164
lines changed

.github/workflows/deploy-site.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ jobs:
4545
- name: Install site dependencies
4646
run: |
4747
cd site && npm ci
48-
# Install deps needed for x64
49-
npm install @tailwindcss/oxide-linux-x64-gnu
5048
5149
- name: Setup Pages
5250
uses: actions/configure-pages@v4

site/app/docs/configuration/page.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { RubyCodeExample } from '@/components/ruby-code-example';
22
import { EditPageLink } from '@/components/edit-page-link';
3+
import { CodeBlock } from '@/components/code-block';
34

45
export default function ConfigurationPage() {
56
return (
@@ -84,6 +85,26 @@ export default function ConfigurationPage() {
8485

8586
<RubyCodeExample name="error_reporting_handler" />
8687

88+
<h2 className="text-2xl font-bold mt-10 mb-4">Sorbet Integration</h2>
89+
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
90+
LogStruct integrates with Sorbet to handle type checking errors based on
91+
the environment. We raise type errors or logging-related errors in
92+
test/development so you can catch them early, but we only log or report
93+
them in production. You can configure a different error handling mode to
94+
change this behavior.
95+
</p>
96+
97+
<CodeBlock language="ruby">
98+
{`# Enable Sorbet error handling
99+
config.integrations.enable_sorbet_error_handlers = true
100+
101+
# This configures the following error handlers:
102+
# - T::Configuration.inline_type_error_handler
103+
# - T::Configuration.call_validation_error_handler
104+
# - T::Configuration.sig_builder_error_handler
105+
# - T::Configuration.sig_validation_error_handler`}
106+
</CodeBlock>
107+
87108
<EditPageLink />
88109
</div>
89110
);

0 commit comments

Comments
 (0)