Skip to content

Commit

Permalink
Merge pull request #16 from vancura/dev
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
vancura authored Dec 12, 2024
2 parents 4266c3b + 17bdf7b commit eddc295
Show file tree
Hide file tree
Showing 24 changed files with 753 additions and 134 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ This repository contains the documentation website for the Actor Programming Mod
- Code syntax highlighting with copy functionality
- Dark mode support
- MDX content support with custom components
- Modal-based navigation system for internal links
- Smooth scroll behavior for navigation
- Banner component for improved inner page context

## Tech Stack

- [Astro](https://astro.build) - Static Site Generator
- [Tailwind CSS](https://tailwindcss.com) - Styling
- [MDX](https://mdxjs.com) - Content
- [TypeScript](https://www.typescriptlang.org) - Type Safety
- [Sharp](https://sharp.pixelplumbing.com/) - Image optimization
- [ESLint](https://eslint.org/) - Code linting
- [Prettier](https://prettier.io/) - Code formatting
- [Vercel](https://vercel.com) - Deployment

## Installation
Expand Down Expand Up @@ -47,6 +53,8 @@ yarn dev
- `yarn preview` - Preview production build
- `yarn clean` - Clean dist and node_modules directories
- `yarn format` - Format code with Prettier
- `yarn lint` - Run ESLint checks
- `yarn lint:fix` - Fix ESLint issues and format code

## Project Structure

Expand Down
209 changes: 209 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
# 0.5.1

## Navigation & Modal System

- Added new modal-based navigation system for internal links:
- Responsive design with semi-transparent overlay
- Click-outside-to-close functionality
- Proper event handling and error logging
- Body scroll prevention when modal is open
- Enhanced cross-page hash link navigation support
- Added smooth scroll behavior for navigation events
- Added new Banner component for improved navigation context on inner pages

## Documentation & Content

- Refactored documentation file structure:
- Renamed files to follow kebab-case convention
- Updated all internal cross-references
- Improved dataset schema documentation
- Updated environment variables documentation:
- Added `ACTOR_FULL_NAME` and `ACTOR_BUILD_TAGS` variables
- Enhanced technical details for developers

## Technical Improvements

- Removed unused heading activation method from TOC component
- Disabled Astro dev toolbar
- Updated Spline runtime
- Simplified background color format in Tailwind configuration
- Enhanced navigation handling and link management
- Improved error logging and type safety

## Illustrations & Visual Updates

- Multiple illustration updates and optimizations
- Removed obsolete illustrations
- Removed Future Work illustration
- Cleanup of unused illustration assets

## Bug Fixes

- Fixed Vercel deployment issues
- Improved modal navigation behavior
- Enhanced error handling and logging
- Fixed navigation issues with hash links

## Development & Infrastructure

- Updated spellcheck configurations
- Improved file naming conventions
- Enhanced type safety throughout the codebase
- Optimized asset management

## Note

This release focuses on improving navigation with a new modal system, enhancing documentation structure, and updating illustrations. Users will experience smoother internal navigation and better visual consistency across the platform.

# 0.4.0

## Documentation & Content

- Added new API-related illustrations for Actor operations including initialization, abort, charging money, exit, and more core functionalities
- Enhanced documentation's visual elements with new descriptive illustrations for Actor definition files and concepts
- Added Actors logo and improved text formatting throughout documentation
- Updated content and documentation across multiple sections

## UI/UX Improvements

- Added new hero animation with enhanced appearance and pointer event handling
- Improved header responsiveness for mobile devices
- Enhanced Table of Contents (TOC) component:
- Optimized progress bar rendering
- Adjusted base width from 8 to 5 pixels
- Removed debounced rendering for better performance
- Enhanced Illustration component with dynamic image handling
- Adjusted illustration width for left and right positions from 1/3 to 1/2 of container width

## Layout & Typography

- Improved heading and blockquote spacing in MDX content:
- Added `clear-both` to headings
- Adjusted vertical spacing for h2, h3, and h4 headings
- Added consistent margin spacing to blockquotes
- Enhanced main content typography
- Fixed heading anchor link underline styles
- Improved code example styling:
- Made code example tabs responsive with smaller text on mobile
- Increased vertical margin around code switcher component
- Enhanced button layout with better padding and text scaling

## Technical Improvements

- Updated package dependencies and configurations
- Enhanced ESLint and TypeScript configurations
- Standardized interface naming convention by adding 'I' prefix
- Replaced innerHTML with safer DOM manipulation methods
- Fixed PostCSS configuration
- Improved file paths and code organization throughout the project

## Styling & Visual Updates

- Updated dark mode icon color to accent-dark
- Multiple illustration updates and optimizations
- Image optimization improvements
- Removed Spline-based illustrations in favor of upcoming test images

## Bug Fixes

- Fixed build issues
- Addressed WebKit scrolling problems by deactivating mouse events for the hero
- Fixed file paths and DOMRect fallback in CodeSwitcher component
- Resolved layout spacing issues with clear-both divs
- Fixed robots.txt configuration

## Development & Infrastructure

- Updated ESLint configuration and removed problematic plugins
- Enhanced project configuration and build process
- Improved TypeScript support and type definitions
- Updated package dependencies and configurations
- Standardized file paths and code organization

## Note

This release includes multiple commits focused on documentation updates, UI improvements, and technical enhancements. Users should notice improved performance, better mobile responsiveness, and enhanced visual consistency across the platform.

# 0.3.0

## New Features

- Added smooth hero section docking for TOC with dynamic position updates
- Implemented class-based managers for improved functionality:
- `CodeCopyManager` for code copying features
- Refactored smooth scroll functionality into a class-based structure

## Improvements

- Enhanced TOC positioning with smooth transitions from hero section
- Added proper lifecycle management with cleanup handling
- Fixed scroll position preservation when switching code tabs
- Simplified CodeSwitcher initialization

## Code Quality

- Consolidated logger-related imports
- Relocated type definitions for better organization
- Moved logger types to `utils/logger.ts`
- Moved scroll types to utils module
- Added proper method binding for better event handling

## Other Changes

- Removed sitemap references
- Updated package dependencies
- Adjusted Prettier settings
- Updated spellcheck configurations

**Full Changelog**: https://github.com/vancura/developer-actor/compare/0.2.1...0.3.0

# 0.2.0

## New Features

- Added synchronized code tab switching across multiple `CodeSwitcher` instances
- Introduced new `CodeSwitcher` component with tab management functionality
- Added `CodeExample` component for individual code examples
- Implemented code copy functionality with visual feedback
- Added `SmoothScroll` component for anchor links with enhanced logging
- Added placeholder images for non-content illustrations
- Enhanced TOC for wide screens with dynamic behavior

## Improvements

- Improved table responsiveness and spacing in MDX content
- Enhanced styles for `HeadingLinks` and MDX content
- Added external link indicator in MDX content
- Refactored TOC visibility thresholds for better user interaction
- Enhanced logging and error handling throughout components
- Improved code readability and organization
- Updated component styling and layout consistency

## Bug Fixes

- Fixed code block overflow issues
- Resolved TOC conflicts with edge-to-edge illustrations
- Fixed anchor styling issues
- Improved handling of heading IDs and scroll behavior

## Other Changes

- Removed wide image layout option
- Updated VSCode settings
- Cleaned up unused components and content files
- Reorganized component configurations
- Updated dependencies

## Breaking Changes

- Removed 'wide' layout option from illustrations and images
- Renamed CopyCode component to CodeCopy
- Removed `SCROLL_OFFSET` from component configurations

**Full Changelog**: https://github.com/vancura/developer-actor/compare/0.1.0...0.2.0

# 0.1.0

Initial release.

**Full Changelog**: https://github.com/vancura/developer-actor/commits/0.1.0
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"private": false,
"type": "module",
"scripts": {
"dev": "astro dev --host",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"dev": "NODE_ENV=development astro dev --host",
"start": "NODE_ENV=development astro dev",
"build": "NODE_ENV=production astro build",
"preview": "NODE_ENV=production astro preview",
"astro": "astro",
"format": "prettier --write \"**/*.{js,ts,mjs,astro,json,yml,yaml,md,mdx}\"",
"lint": "eslint .",
Expand Down
14 changes: 8 additions & 6 deletions src/components/Banner.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div
id="banner"
class="sticky left-0 top-0 z-50 mx-auto mb-2 max-w-md text-balance rounded-b-xl bg-background-banner p-4 pb-5 text-center shadow-md dark:bg-background-banner-dark dark:shadow-none"
class="invisible sticky left-0 top-0 z-50 mx-auto mb-2 max-w-md text-balance rounded-b-xl bg-background-banner p-4 pb-5 text-center shadow-md dark:bg-background-banner-dark dark:shadow-none"
>
This is an inner page of the Actor Whitepaper site.

Expand Down Expand Up @@ -37,10 +37,8 @@
const pathname = link.pathname;
const hash = link.hash;

logger.info(`Intercepted internal navigation to: ${pathname}${hash}`);

// If it's a hash link to the index page, navigate parent directly.
if (pathname === '/' && hash) {
// If it's the index page (with or without hash), navigate the parent window.
if (pathname === '/') {
logger.info(`Direct parent navigation to: ${pathname}${hash}`);

window.parent.location.href = pathname + hash;
Expand All @@ -60,10 +58,14 @@
} else if (link && link.href) {
logger.info(`Setting external link target to blank: ${link.href}`);

link.target = 'blank';
link.target = '_blank';
}
});
} else {
if (banner) {
banner.classList.remove('invisible');
}

logger.info('Banner initialized in non-modal mode');
}
})();
Expand Down
11 changes: 11 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ canonical = canonical.endsWith('/') ? canonical.slice(0, -1) : canonical;
{HEAD.FONTS.PRECONNECT.map((url) => <link rel="preconnect" href={url} crossorigin />)}

<link href={`https://fonts.googleapis.com/css2?family=${HEAD.FONTS.FAMILIES.join('&family=')}`} rel="stylesheet" />

{
import.meta.env.MODE === 'production' && (
<script
defer
data-domain="whitepaper.actor"
data-category="analytics"
src="https://plausible.io/js/script.hash.js"
/>
)
}
Loading

0 comments on commit eddc295

Please sign in to comment.