Skip to content

docs: error in displaying charts and logo #2020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions community/foundation-delegation-program.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The Celestia Foundation Delegation Program

![Delegation program banner](/img/foundation-delegation-program.jpg)
![Delegation program banner](https://github.com/celestiaorg/docs/blob/main/public/img/foundation-delegation-program.jpg)
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Use raw GitHubusercontent URL for images to ensure proper rendering
The current link points to the GitHub “blob” view, which returns an HTML page instead of the image itself. This can cause broken or slow-loading images on the docs site.

Please verify that the image displays correctly in your deployed site. Consider updating to the raw.githubusercontent.com path:

-![Delegation program banner](https://github.com/celestiaorg/docs/blob/main/public/img/foundation-delegation-program.jpg)
+![Delegation program banner](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/foundation-delegation-program.jpg)

🏁 Script executed:

#!/bin/bash
set -e

echo "🔍 Searching for the image file in the repo..."
if rg -l "foundation-delegation-program.jpg"; then
  echo "✅ Found: foundation-delegation-program.jpg"
else
  echo "❌ Not found in repository."
fi

echo -e "\n🔗 Checking HEAD of GitHub blob URL..."
curl -sI https://github.com/celestiaorg/docs/blob/main/public/img/foundation-delegation-program.jpg | sed -n '1,5p'

echo -e "\n🔗 Checking HEAD of raw.githubusercontent.com URL..."
curl -sI https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/foundation-delegation-program.jpg | sed -n '1,5p'

Length of output: 1202


Use raw GitHubusercontent URL for images
The GitHub “blob” URL returns an HTML page (content-type: text/html), whereas the raw.githubusercontent.com URL serves the actual JPEG (content-type: image/jpeg). Update the Markdown to point directly to the raw image.

• File: community/foundation-delegation-program.md
• Line: 3

-![Delegation program banner](https://github.com/celestiaorg/docs/blob/main/public/img/foundation-delegation-program.jpg)
+![Delegation program banner](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/foundation-delegation-program.jpg)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
![Delegation program banner](https://github.com/celestiaorg/docs/blob/main/public/img/foundation-delegation-program.jpg)
![Delegation program banner](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/foundation-delegation-program.jpg)


## Objectives of the program

Expand Down Expand Up @@ -29,7 +29,7 @@ details about the application and eligibility criteria are described below.

### Cohort process

![cohort timeline](/img/cohort-timeline.jpg)
![cohort timeline](https://github.com/celestiaorg/docs/blob/main/public/img/cohort-timeline.jpg)
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Switch cohort timeline image to raw GitHubusercontent URL
As above, the blob URL may not serve the raw asset properly in a static site. Confirm rendering and switch to the raw URL:

-![cohort timeline](https://github.com/celestiaorg/docs/blob/main/public/img/cohort-timeline.jpg)
+![cohort timeline](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/cohort-timeline.jpg)

🏁 Script executed:

#!/bin/bash
set -e
# Locate occurrences of the cohort timeline image reference
rg "cohort-timeline.jpg" -n

# Show the snippet around where it's referenced
cat -n community/foundation-delegation-program.md | sed -n '25,35p'

Length of output: 746


Use raw GitHubusercontent URL for cohort timeline image
GitHub “blob” URLs serve an HTML page instead of the image file, so the graphic won’t render on a static site. Update the reference as follows:

  • File: community/foundation-delegation-program.md, line 32
-![cohort timeline](https://github.com/celestiaorg/docs/blob/main/public/img/cohort-timeline.jpg)
+![cohort timeline](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/cohort-timeline.jpg)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
![cohort timeline](https://github.com/celestiaorg/docs/blob/main/public/img/cohort-timeline.jpg)
![cohort timeline](https://raw.githubusercontent.com/celestiaorg/docs/main/public/img/cohort-timeline.jpg)


Every 4 months, the Celestia Foundation will distribute a portion of the
Foundation’s total available stake to a cohort of validators who meet
Expand Down