- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Add API documentation generated with Dokka to the site deployed to GitHub Pages #43
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
      
      
            ShreckYe
  wants to merge
  61
  commits into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
github-pages-deployment-with-dokka
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    …adapted from "gradle-common", and resolve heap memory issues A source commit: huanshankeji/gradle-common@c1c69c3 `java.lang.OutOfMemoryError: Java heap space` occurs when running the `dokkaGenerate` Gradle task without further configuration and is resolved with the approach from Kotlin/dokka#3885 (comment). The solution code `dokkaGeneratorIsolation = ClassLoaderIsolation()` has to be added to the subproject build scripts (the convention plugin) to work. Moreover, this happens when the heap space is not enough: ```text The Daemon will expire immediately since the JVM garbage collector is thrashing The project memory settings are likely not configured or are configured to an insufficient value. The memory settings for this project must be adjusted to avoid this failure. These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'. The currently configured max heap space is '2 GiB' and the configured max metaspace is 'unknown'. ``` Therefore, `Xmx` in `org.gradle.jvmargs` is increased all the way to 32 GB. 4 GB and 8 GB still cause GC thrashing, and 16 GB is enough but the task takes more time compared to 32 GB with swap. The actual max memory usage is about 30 GB with the 32 GB max heap size. This seems to be caused by parallelism so to reduce the max memory usage, the `--max-workers` Gradle argument can be used and is tested to work. `--no-parallel` doesn't make a difference as tested, however. Eventually, after the 2 issues above are fixed, the task still fails because of Kotlin/dokka#3900.
The `mavenLocal()` repository is kept there now since there is CI now.
…e project version to be specific about Kotlin 2.1.0
…cies and library dependencies) to resolve
…xplicit "kotlin-2.1.0" in the library and project versions
| There seems to be not enough memory for Dokka v2.0.0-Beta. Wait for a new release and see if this is fixed. | 
| 
 | 
See "Kotlin 2.1 is required for all platforms including JVM" in https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.9.0. A `org.jetbrains.kotlin.util.FileAnalysisException` persists.
…sing Copilot without success
…sing Copilot again without a different model without success
This reverts commit be95590.
…arding Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…mon project Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…ction Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…fic details Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…man developers Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…db-8915-7914dc2c7a25 Add comprehensive .github/copilot-instructions.md for repository onboarding
Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
…4b-97c5-564fb0c0cb78 Add reference to Kotlin code style guide in copilot-instructions.md
…g Kotlin to 2.2.10 See https://youtrack.jetbrains.com/issue/KT-78255/Gradle-KMP-compileCommonMainKotlinMetadata-fails-with-composite-builds for the cause and solutions.
…of trouble and not worth it
> Execution failed for task ':compose-multiplatform-html-unified-demo:checkDebugAarMetadata'.
It's no longer needed, and it causes the build to fail for the similar Kotlin 2.2.20 reason.
…grading-to-kotlin-2.2.10' into dev
…`applyDefaultHierarchyTemplate`, which was unnoticed and didn't cause much trouble
… which is no longer needed since Dokka 2.1.0-Beta
| 
 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    


No description provided.