Skip to content

Add GitHub Pages HTML export for portfolio analysis tables#29

Open
Copilot wants to merge 12 commits into
mainfrom
copilot/fix-2952456e-c612-444c-8d12-0b163b52d0ea
Open

Add GitHub Pages HTML export for portfolio analysis tables#29
Copilot wants to merge 12 commits into
mainfrom
copilot/fix-2952456e-c612-444c-8d12-0b163b52d0ea

Conversation

Copy link
Copy Markdown

Copilot AI commented Jun 8, 2025

Implements automatic HTML table export functionality to enable GitHub Pages publishing of portfolio analysis results from parser.py.

Changes Made

📊 Enhanced parser.py

  • Added HTML export functionality for dailymovers and pricetracker DataFrames
  • Creates styled HTML tables in docs/ directory with Bootstrap classes
  • Combines top performers and worst performers with visual separators
  • Added logging for HTML export operations
# Example: Daily movers now exported as HTML
dailymovers_combined = pd.concat([
    dailymovers_top20,
    separator_row,
    dailymovers_bottom20
])
dailymovers_combined.to_html('docs/dailymovers.html', classes='table table-striped table-bordered')

🌐 Created docs/index.html

  • Professional landing page with responsive design
  • Displays both tables using iframes for seamless integration
  • Includes descriptions explaining each analysis table
  • Ready for GitHub Pages deployment

🚫 Added .gitignore

  • Comprehensive Python project exclusions
  • Specifically excludes raw CSVs and logs from docs/ directory
  • Prevents sensitive data from being published to GitHub Pages

📖 Updated README.md

  • Added GitHub Pages section with setup instructions
  • Included local testing commands
  • Clear workflow: run parser → push → view on GitHub Pages

Usage

  1. Generate tables: python parser.py
  2. View locally: Open docs/index.html in browser
  3. Deploy: Push to GitHub and enable Pages from docs/ folder
  4. Access online: Visit https://[username].github.io/dataparsing/

Result

After running parser.py, users can immediately view:

  • Daily Movers: Top 20 gainers/losers based on 1-day price changes
  • Price Tracker: 6-month performance analysis with key metrics

The implementation ensures a seamless workflow from data processing to web publishing with no manual HTML creation required.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits June 8, 2025 02:04
Co-authored-by: ferdlestier <88462636+ferdlestier@users.noreply.github.com>
Co-authored-by: ferdlestier <88462636+ferdlestier@users.noreply.github.com>
Co-authored-by: ferdlestier <88462636+ferdlestier@users.noreply.github.com>
Copilot AI changed the title [WIP] Display parser.py output tables on GitHub Pages (docs/) Add GitHub Pages HTML export for portfolio analysis tables Jun 8, 2025
Copilot AI requested a review from ferdlestier June 8, 2025 02:09
@ferdlestier ferdlestier marked this pull request as ready for review June 8, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants