Skip to content

Commit

Permalink
dark screenshots fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Aug 23, 2024
1 parent c7a0fb0 commit da85e7e
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 12 deletions.
8 changes: 2 additions & 6 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ const config = {
{
redirects: [
{
to: '/docs/learn/concepts',
from: '/docs/learn/genai',
},
{
to: '/docs/learn/concepts/genai',
from: '/docs/learn/concepts',
to: '/docs/learn/hal9',
from: '/docs',
},
],
},
Expand Down
2 changes: 0 additions & 2 deletions website/learn/hal9/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ Hal9's user interface is a web application that showcases the main use cases on

Hal9's developer interface consists of a powerful open-source library which enables developers to build AI coworkers of arbitrary complexity. Developers can write and modify code from Hal9's user interface or deploy from other developer services like GitHub.

<center><a href="/devs"><ThemedImage src="hal9-start" /></a></center>

This enables business users to rapidly create AI coworkers and for developers to enhance them with arbitrary complexity that fulfills the business user needs.
6 changes: 4 additions & 2 deletions website/screenshots/screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ async function collectScreenshots(dark) {

await page.setViewport({ width: 1024, height: 600 });
await page.goto('http://localhost:5000/explore?guest', { waitUntil: 'networkidle2' });
await page.screenshot({ path: '../static/screenshots/hal9-start-light.png' });


if (dark) await page.click('#switch-dark');
await page.waitForTimeout(500);

await page.screenshot({ path: '../static/screenshots/hal9-start-' + (dark ? 'dark' : 'light') + '.png' });

await performActions(page, actions, dark ? '-dark' : '-light');

console.log('Screenshot taken and saved as screenshot.png');
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Floating } from '../components/floating.jsx';
Our documentation can help you learn how to use and create coworkers using our [Hal9](learn/hal9/explore), using [code](learn/code) and important [concepts](learn/concepts) relevant in generative AI solutions.

<div class="FloatingWrapper">
<Floating title="Learn" href="learn/hal9/explore">Learn how to use and create coworkers using our [product](learn/hal9), [code](learn/code) and important [concepts](learn/concepts) relevant in generative AI solutions.</Floating>
<Floating title="Reference" href="reference/code">Reference a comprehensive list of developer functions to code sophisticated generative AI solutions.</Floating>
<Floating title="Learn" href="/docs/learn/hal9/explore">Learn how to use and create coworkers using our [product](learn/hal9/explore), [code](learn/code) and important [concepts](learn/concepts) relevant in generative AI solutions.</Floating>
<Floating title="Reference" href="/docs/reference/code">Reference a comprehensive list of developer functions to code sophisticated generative AI solutions.</Floating>
<Floating title="News" href="https://hal9.com/news">Get updates on the latest product and code updates, subscribe for email updates.</Floating>
</div>
Binary file modified website/static/screenshots/hal9-chat-user-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-chat-user-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-chat-welcome-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-create-create-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-create-data-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-create-message-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-create-name-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-create-name-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-explore-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-explore-hal9-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-explore-hal9-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/screenshots/hal9-explore-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/screenshots/hal9-start-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da85e7e

Please sign in to comment.