Docusaurus-OpenAPI: Preventing Loss of Manual Edits #1115
              
                Unanswered
              
          
                  
                    
                      miroslavliska
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 1 reply
-
| Hi @miroslavliska, I can think of two possible approaches: 
 For example, this snippet illustrates referencing the operation   | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Dear developers,
I’m able to generate my service from a YAML file using the docusaurus-open-api plugin. I can also manually add extra textual info to the MDX file, like an Introduction section with some custom text.
However, when I modify the YAML and regenerate the docs, I lose my manually added Introduction sections in each MDX file. That’s the problem—I don’t want to manually re-add the text every time.
So, is there an existing mechanism for preserving manually added content when regenerating the docs? Or what’s the recommended approach for handling this?
I'm thinking about adding a parameter for each service that allows including an external MDX file with manually edited content. That way, after regenerating the YAML, the manual content would still be included. This seems like a common use case, so I’m wondering if something like this already exists, or if anyone has suggestions.
Thanks for your help!
Miroslav
Beta Was this translation helpful? Give feedback.
All reactions