Skip to content

Add doc site#185

Merged
jbampton merged 1 commit into
mainfrom
add-doc
Dec 25, 2025
Merged

Add doc site#185
jbampton merged 1 commit into
mainfrom
add-doc

Conversation

@jbampton

Copy link
Copy Markdown
Member

No description provided.

@jbampton jbampton self-assigned this Dec 25, 2025
@jbampton jbampton added the enhancement New feature or request label Dec 25, 2025
@jbampton jbampton added this to Turbo Dec 25, 2025
@jbampton jbampton moved this to In Progress in Turbo Dec 25, 2025
@jbampton jbampton added this to the December - January 2025 milestone Dec 25, 2025
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @jbampton, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive and highly personalized documentation site built with Sphinx. The site is designed for optimal viewing across various devices, offering dynamic theming and an interactive background image gallery. It serves as a digital portfolio, showcasing the author's professional journey, personal interests, and local community engagements.

Highlights

  • Documentation Site Setup: A new documentation site has been added using Sphinx, configured for building on Read the Docs. This includes standard Sphinx build files (Makefile, make.bat) and a dedicated requirements-docs.txt.
  • Custom Theming and Layout: The site features a highly customized layout and styling, including responsive design for desktop, tablet, and mobile. It supports light, dark, and 'random' themes, along with a unique 'gallery mode' that showcases background images.
  • Dynamic Content and User Preferences: JavaScript has been implemented to manage theme cycling, background image selection from a gallery of 102 images, and toggling the gallery mode. User preferences for theme and background are persisted using local storage.
  • Rich Personal Content: The documentation includes a wide array of personal content, such as career achievements, lists of friends, hobbies (books, LEGO, pens, trading cards), favorite places in Brisbane, recommended tools, and websites.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@jbampton jbampton merged commit 1cb4d83 into main Dec 25, 2025
3 of 4 checks passed
@jbampton jbampton deleted the add-doc branch December 25, 2025 13:51
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Turbo Dec 25, 2025

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive documentation site built with Sphinx, including configuration for Read the Docs, custom styling and interactivity with CSS and JavaScript, and a suite of content pages. My review focuses on improving code quality, maintainability, and correctness. Key feedback includes using stable dependencies for builds, addressing several typos and formatting issues in the documentation content, improving CSS and JavaScript practices to avoid magic numbers and enhance accessibility, and ensuring all generated links are functional.

Comment on lines +40 to +54
function setRandomThemeColors() {
// Determines if text should be light or dark based on a coin flip
const isDarkBackground = Math.random() < 0.5;

// Use high opacity (0.95) for content backgrounds
const contentBg = getRandomRGBAColor(0.95);
const sidebarBg = getRandomRGBAColor(0.95);

// Set text color for contrast
const textColor = isDarkBackground ? '#f0f0f0' : '#333333';

document.documentElement.style.setProperty('--random-content-bg', contentBg);
document.documentElement.style.setProperty('--random-sidebar-bg', sidebarBg);
document.documentElement.style.setProperty('--random-text-color', textColor);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The setRandomThemeColors function determines text color with a simple coin flip (Math.random() < 0.5), which does not guarantee sufficient contrast against the randomly generated background color. This can lead to unreadable text and fail WCAG accessibility standards. A more robust approach is to calculate the luminance of the background color and choose a light or dark text color based on a contrast threshold. You can find algorithms for this by searching for "calculate luminance for text color contrast".

Comment thread requirements-docs.txt
@@ -0,0 +1 @@
Sphinx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Sphinx dependency is not pinned to a specific version. This can lead to non-reproducible builds, where a future update to Sphinx could break your documentation. It's a best practice to pin dependencies to a specific version or a compatible range.

Sphinx>=7.2,<8.0

Comment thread .readthedocs.yaml
build:
os: ubuntu-24.04
tools:
python: '3.13'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using Python 3.13 is risky as it's currently a pre-release version. This could lead to unexpected build failures on Read the Docs. It's recommended to use the latest stable version of Python for production builds to ensure stability and reliability.

    python: '3.12'

</div>
</div>
{# Placeholder for custom footer content or the standard Alabaster footer/relbar #}
{{ custom_footer_content }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The line {{ custom_footer_content }} appears to be a placeholder for a variable that is not defined, which could lead to unexpected output or errors. Since the standard Alabaster footer is rendered in the block below, this placeholder line should be removed.

Comment thread doc/source/my-friends.rst
Sometimes I see a man named **David** sitting at
`Central train station <https://jp.translink.com.au/plan-your-journey/stops/central-station>`__
and last time we had a chat about `Byron Bay <https://en.wikipedia.org/wiki/Byron_Bay>`__. Said hello on three
separate occassions. Last time we both greeted and parted with a *fist bump of life*. 🤜🤛

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the text. "occassions" should be "occasions".

Suggested change
separate occassions. Last time we both greeted and parted with a *fist bump of life*. 🤜🤛
separate occasions. Last time we both greeted and parted with a *fist bump of life*. 🤜🤛

What I Like Doing 💜
====================

Brisbane Central Business Distinct

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the subheading. "Distinct" should be "District".

Suggested change
Brisbane Central Business Distinct
Brisbane Central Business District

Comment on lines +69 to +70
specials on some products. I have spoken with at least five staff members and at least 4 on multiple occassions. Most
often I see **Sean** working there and he provides excellent service. I do also visit Dymocks bookstore but I much

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the text. "occassions" should be "occasions".

Suggested change
specials on some products. I have spoken with at least five staff members and at least 4 on multiple occassions. Most
often I see **Sean** working there and he provides excellent service. I do also visit Dymocks bookstore but I much
specials on some products. I have spoken with at least five staff members and at least 4 on multiple occasions. Most
often I see **Sean** working there and he provides excellent service. I do also visit Dymocks bookstore but I much

Comment on lines +83 to +86
* Visiting the Brisbane Queen Street `Swatch <https://www.swatch.com/en-au/>`__ store and talking to my friend **Tim**
the *amazing* and *wonderful* Assistant Manager. Tim is extremely knowledgable about watches and fashion and he is
very helpful. Another staff member **Lachy** works there and seems to know his *Basketball* which impressed me. Lachy
is also a slick knowledgable sales guy.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the text. "knowledgable" should be "knowledgeable". This typo appears twice in this paragraph.

Suggested change
* Visiting the Brisbane Queen Street `Swatch <https://www.swatch.com/en-au/>`__ store and talking to my friend **Tim**
the *amazing* and *wonderful* Assistant Manager. Tim is extremely knowledgable about watches and fashion and he is
very helpful. Another staff member **Lachy** works there and seems to know his *Basketball* which impressed me. Lachy
is also a slick knowledgable sales guy.
* Visiting the Brisbane Queen Street `Swatch <https://www.swatch.com/en-au/>`__ store and talking to my friend **Tim**
the *amazing* and *wonderful* Assistant Manager. Tim is extremely knowledgeable about watches and fashion and he is
very helpful. Another staff member **Lachy** works there and seems to know his *Basketball* which impressed me. Lachy
is also a slick knowledgeable sales guy.

Address: 331 Sandgate Rd, Albion QLD 4010

Chermside Shopping Center
^^^^^^^^^^^^^^^^^^^^^^^^^

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an inconsistent spelling of "Center" / "Centre". You use "city center" and "Shopping Center" here, but the common spelling in Australia is "Centre". For consistency, I recommend using "Centre" throughout the document.

Suggested change
^^^^^^^^^^^^^^^^^^^^^^^^^
Chermside Shopping Centre


#main-layout-wrapper {
/* Ensures minimum height for background image stretching */
min-height: max(100vh, 2480px);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The min-height property uses a magic number 2480px. This makes the code harder to understand and maintain, as the reason for this specific value isn't clear. Consider adding a comment to explain its purpose (e.g., if it relates to a background image dimension) or defining it as a CSS variable for better readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant