feat: Serve highlight.js and other css #5

Merged
rdenadai merged 1 commit from rdenadai/hightlight-css-move into main 2025-09-10 19:47:41 +00:00
rdenadai commented 2025-09-10 19:46:14 +00:00 (Migrated from github.com)
No description provided.
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2025-09-10 19:46:24 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull Request Overview

This PR migrates external CSS and JavaScript dependencies to local static files and reorganizes the project structure for better performance and maintainability.

  • Moved highlight.js CSS and JavaScript files from CDN to local static files
  • Extracted inline CSS from base.html into a separate static/style.css file
  • Updated GitHub Markdown CSS version from 5.7.0 to 5.8.1 and moved Google Analytics script to head section

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
templates/pages/essay.html Updated highlight.js references to use local static files
templates/base.html Extracted inline CSS to external file, updated GitHub Markdown CSS version, moved Google Analytics to head
static/style.css New file containing previously inline CSS styles
static/index.js Updated highlight.js theme switching to use local files, code formatting improvements
static/highlight/atom-one-light.min.css New local highlight.js light theme CSS file
static/highlight/atom-one-dark.min.css New local highlight.js dark theme CSS file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

## Pull Request Overview This PR migrates external CSS and JavaScript dependencies to local static files and reorganizes the project structure for better performance and maintainability. - Moved highlight.js CSS and JavaScript files from CDN to local static files - Extracted inline CSS from base.html into a separate static/style.css file - Updated GitHub Markdown CSS version from 5.7.0 to 5.8.1 and moved Google Analytics script to head section ### Reviewed Changes Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments. <details> <summary>Show a summary per file</summary> | File | Description | | ---- | ----------- | | templates/pages/essay.html | Updated highlight.js references to use local static files | | templates/base.html | Extracted inline CSS to external file, updated GitHub Markdown CSS version, moved Google Analytics to head | | static/style.css | New file containing previously inline CSS styles | | static/index.js | Updated highlight.js theme switching to use local files, code formatting improvements | | static/highlight/atom-one-light.min.css | New local highlight.js light theme CSS file | | static/highlight/atom-one-dark.min.css | New local highlight.js dark theme CSS file | </details> --- <sub>**Tip:** Customize your code reviews with copilot-instructions.md. <a href="/rdenadai/rdenadai.com.br/new/main/.github?filename=copilot-instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Create the file</a> or <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">learn how to get started</a>.</sub>
Sign in to join this conversation.
No description provided.