JSenkCC commited on
Commit
d1c27b0
·
verified ·
1 Parent(s): 31a552b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -200,11 +200,25 @@ def workspace_page():
200
 
201
  def generate_documentation_page():
202
  st.subheader(f"Generate Documentation for {st.session_state.current_project}")
203
- st.write("This page will allow the user to generate documentation for the selected project.")
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  if st.button("Back to Project"):
205
  st.session_state.page = "project_view"
206
  st.rerun()
207
 
 
208
  def view_documentation_page():
209
  st.subheader(f"View Documentation for {st.session_state.current_project}")
210
  st.write("This page will display the generated documentation for the selected project.")
 
200
 
201
  def generate_documentation_page():
202
  st.subheader(f"Generate Documentation for {st.session_state.current_project}")
203
+ st.write("Enter the functionality or parts of the project for which you'd like to generate documentation.")
204
+
205
+ # Prompt user for functionality description
206
+ functionality = st.text_area("Describe the functionality for documentation generation", placeholder="e.g., Explain the function of the file `main.py`")
207
+
208
+ # Button to start generating documentation
209
+ if st.button("Generate"):
210
+ if functionality.strip():
211
+ # Placeholder for documentation generation logic
212
+ st.write(f"Generating documentation for: {functionality}")
213
+ else:
214
+ st.error("Please enter the functionality to generate documentation.")
215
+
216
+ # Button to navigate back to the project page
217
  if st.button("Back to Project"):
218
  st.session_state.page = "project_view"
219
  st.rerun()
220
 
221
+
222
  def view_documentation_page():
223
  st.subheader(f"View Documentation for {st.session_state.current_project}")
224
  st.write("This page will display the generated documentation for the selected project.")