Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ jobs:
user_email: 41898282+github-actions[bot]@users.noreply.github.com
cname: docs.defang.io


# Notify docs chatbot of new docs with curl command
- name: Notify docs chatbot of new docs
run: |
curl -X POST https://chatbot-url.com/trigger-rebuild?token=${{ secrets.CHATBOT_TOKEN }}


- name: Notify Slack of Action Failures
uses: ravsamhq/notify-slack-action@2.5.0
Expand Down
19 changes: 19 additions & 0 deletions docs/chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Ask Defang"
description: This is a chatbot that is trained on defang documentation and designed to answer questions
sidebar_position: 900
className: "no-title-page"
---

<iframe
src="https://rag-chatbot.docs-chatbot.chrisyhjiang.defang.app/"
style={{
width: "100%", // Assuming the sidebar width is 250px
height: "calc(100vh - 60px)", // Assuming the header height is 60px
minHeight: "600px",
border: "none",
marginLeft: "0px",
marginRight: "0px",
display: "block" // Ensures proper centering
}}>
</iframe>
28 changes: 28 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,31 @@
--ifm-color-primary-lightest: #d4e7f5;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

.docs-doc-id-chat h1 {
display: none;
}

.docs-doc-id-chat .breadcrumbs {
display: none;
}

.docs-doc-id-chat main > .container {
padding: 0px !important;
}

.docs-doc-id-chat article > nav {
display: none !important;
}

.docs-doc-id-chat main > .container > .row > .col {
max-width: 100% !important;
}

.docs-doc-id-chat main nav.pagination-nav {
display: none !important;
}

.docs-doc-id-chat main article footer {
display: none !important;
}
Loading