Skip to content

Commit

Permalink
inlined css in html
Browse files Browse the repository at this point in the history
  • Loading branch information
fynks committed Dec 13, 2024
1 parent 6d6e8c0 commit cc2a858
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 129 deletions.
20 changes: 15 additions & 5 deletions convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ if ! command -v pandoc &> /dev/null; then
handle_error "pandoc is not installed. Please install it first."
fi

# Check if styles.css exists
if [[ ! -f ./docs/styles.css ]]; then
handle_error "styles.css not found in ./docs. Please ensure it exists."
fi

# Read styles.css content
INLINE_CSS=$(<./docs/styles.css)

# Create template
cat > template.html << 'EOL'
<!DOCTYPE html>
Expand Down Expand Up @@ -48,8 +56,8 @@ cat > template.html << 'EOL'
</html>
EOL

# Create header with improved meta tags
cat > header.html << 'EOL'
# Create header with inline CSS and improved meta tags
cat > header.html << EOL
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A comprehensive, curated list of Android root apps, tools, and utilities. Includes ad blockers, system tools, customization apps, and root-specific utilities.">
Expand All @@ -59,9 +67,12 @@ cat > header.html << 'EOL'
<link rel="preconnect" href="https://awesome.re" />
<link rel="dns-prefetch" href="https://profile-counter.glitch.me/" />
<link rel="preconnect" href="https://profile-counter.glitch.me/" />
<link rel="stylesheet" href="styles.css">
<meta name="theme-color" content="#0366d6">
<style>
${INLINE_CSS}
</style>
<!-- OpenGraph Meta Tags -->
<meta property="og:title" content="Awesome Android Root - Ultimate List of Root Apps">
<meta property="og:description" content="Discover the best Android root apps, tools, and utilities. A curated collection of essential root applications for advanced Android users.">
Expand All @@ -81,7 +92,6 @@ cat > header.html << 'EOL'
<meta name="author" content="Android Root Community">
<meta name="robots" content="index, follow">
<meta name="language" content="English">
EOL

# Convert markdown with progress
Expand All @@ -104,4 +114,4 @@ cleanup
echo "✓ Conversion complete! Output saved as index.html"
echo "→ Table of contents generated"
echo "→ Dark mode support added"
echo "→ Accessibility features implemented"
echo "→ Accessibility features implemented"
14 changes: 0 additions & 14 deletions docs/sitemap.xml

This file was deleted.

111 changes: 1 addition & 110 deletions docs/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc2a858

Please sign in to comment.