Table of Contents¶
- How to Install Drafter
- Drafter Quick Start Guide
- Workbook
- Longer Examples
- Drafter Documentation for Students
- HTML
- Styling
- A Full Styling Example
- Styling Functions
float_left()float_right()bold()italic()underline()strikethrough()monospace()small_font()large_font()change_color()change_background_color()change_text_size()change_text_font()change_text_align()change_text_decoration()change_text_transform()change_margin()change_border()change_padding()change_width()change_height()
- Keyword Parameters
- CSS Style Tags
- CSS Classes
- Adding Website CSS
- Changing Themes
- Testing Drafter Applications
- Deployment
- Step 1: Create the Repository
- Step 2: Enable GitHub Pages
- Step 3: Edit Your Main.py File
- Step 4: Upload Additional Files (If Needed)
- Step 5: Upload Your Planning Document
- Step 6: Update set_site_information with Your Details
- Step 7: Record a Video
- Step 8: Deploy Your Website
- Step 9: Get Your Deployed URL and Submit
- Checking Your Site Information
- Deployment Dashboard
- Common Issues and Tips
- Reference Lists
- HTML Colors
- Components Cheatsheet
- HTML Fonts
- Transitioning from Drafter to Flask
- Local Python Development Setup Guide
- Step 1: Install Git
- Step 2: Install Visual Studio Code (VS Code)
- Step 3: Install UV
- Step 4: Install Python
- Step 5: Install the Python Extension for VS Code
- Step 6: Apply for GitHub Student Developer Pack
- Step 7: Setup GitHub Copilot
- Step 8: Fork and Clone a Repository
- Step 9: Install Dependencies and Run Tests
- Step 10: Fix the Issue and Confirm It Works
- Step 11: Add, Commit, and Push Your Changes
- Step 12: Enable and Check GitHub Actions
- Step 13: Develop
- Congratulations!
- Gemini Support
- Pillow Support
- Deployed Site Compatibility
- JavaScript in Drafter
- More Help
- Full API Documentation
ServerServer.about()Server.add_route()Server.clear_routes()Server.convert_parameter()Server.dump_state()Server.flash_warning()Server.handle_images()Server.load_from_state()Server.make_bottle_page()Server.make_debug_page()Server.make_error_page()Server.prepare_args()Server.reset()Server.restore_state_if_available()Server.run()Server.serve_image()Server.setup()Server.test_deployment()Server.try_special_conversions()Server.verify_page_result()Server.verify_page_state_history()Server.wrap_page()
SiteInformationbundle_files_into_js()do_not_start_server()get_all_routes()get_main_server()get_server_setting()protect_script_tags()set_main_server()set_server_setting()start_server()BakeryTestCaseassert_equal()diff_tests()route()PageConversionRecordUnchangedRecordVisitedPageadd_website_css()add_website_header()default_index()deploy_site()hide_debug_information()set_image_path()set_site_information()set_website_framed()set_website_style()set_website_title()show_debug_information()DebugInformationServerConfigurationApiKeyBoxArgumentBoxBulletedListButtonCheckBoxDivDivisionDownloadFileUploadHeaderHorizontalRuleImageLineBreakLinkLinkContentMatPlotLibPlotNumberedListPageContentPicturePrePreformattedTextRowSelectBoxSpanSubmitButtonTableTextTextAreaTextBoxmake_safe_argument()make_safe_json_argument()make_safe_name()validate_parameter_name()float_left()float_right()update_attr()update_style()LLMErrorLLMMessageLLMResponseResponseWrappercall_gemini()call_gemini_structured()call_gpt()call_gpt_structured()clear_api_key()get_stored_api_key()save_api_key()