-
Notifications
You must be signed in to change notification settings - Fork 56
Feat/pdf layout #889
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
Merged
Merged
Feat/pdf layout #889
Changes from 18 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
feb056f
pdfChunks file updated for better text processing
Aayushjshah 60bfdb9
comment fixes
Aayushjshah 29508fa
comment fixes
Aayushjshah 498c544
comment fixes
Aayushjshah 5ab007e
comment fixes
Aayushjshah 9f816a0
comment fixes
Aayushjshah 2f497d0
comment fixes
Aayushjshah 9dab216
Merge branch 'main' into feat/pdfIngestFix
Aayushjshah 0c98b7a
removing old logic
Aayushjshah bb60269
removing old logic
Aayushjshah 8ae7a74
Workflow route issue fix and removed logs (#847)
avirupsinha12 8a95be8
Fixed file content retrieval: used wrong format for names (#851)
SahilKumar000 ea7db16
Workflow Refresh Issue fixed (#860)
avirupsinha12 133adf8
fix/file-process: Now KB files images are processed (#861)
SahilKumar000 afcc971
feat(doc-preview): Added support for viewing xlxs,xls,csv (#834) (#865)
Ravishekhar7870 56a3b54
fix:model-selection (#866)
MayankBansal2004 d09b563
fix(citation preview): added back button in citation preview (#846) (…
rahul1841 94bd9a6
fix:temperorily disabled chunk citations for pdfs (#848) (#870)
Himanshvarma de50563
fix:title-generation (#852) (#872)
Ravishekhar7870 1840e06
User Management page (#631) (#871)
naSim087 328e78b
testing
Aayushjshah da77a8c
Fix/app exc (#877)
naSim087 da483b7
fix(docker-compose): add vespa‑deploy service and relax Microsoft cre…
shivamashtikar a296053
fix:replace z.instanceof(File) with z.any() for better compatibility …
naSim087 d5154f6
feat(docker): add GPU support and configurable metrics port (#884) (#…
shivamashtikar e5ff53d
Adding gemini for pdf processing
Aayushjshah 394e3eb
chore: merge main into feat/pdfLayout
Aayushjshah 600c959
chore: merge main into feat/pdfLayout
Aayushjshah 845db22
chore: merge main into feat/pdfLayout
Aayushjshah 70a95db
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah 64337f7
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah d42feac
Merge branch 'main' into feat/pdfLayout
Aayushjshah 03b1045
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah b30386b
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah bd43cd1
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah bb78cd5
chore: splitting of large pdfs feat/pdfLayout
Aayushjshah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# User Templates | ||
|
||
This directory allows you to create custom templates that override the default Spec Workflow templates. | ||
|
||
## How to Use Custom Templates | ||
|
||
1. **Create your custom template file** in this directory with the exact same name as the default template you want to override: | ||
- `requirements-template.md` - Override requirements document template | ||
- `design-template.md` - Override design document template | ||
- `tasks-template.md` - Override tasks document template | ||
- `product-template.md` - Override product steering template | ||
- `tech-template.md` - Override tech steering template | ||
- `structure-template.md` - Override structure steering template | ||
|
||
2. **Template Loading Priority**: | ||
- The system first checks this `user-templates/` directory | ||
- If a matching template is found here, it will be used | ||
- Otherwise, the default template from `templates/` will be used | ||
|
||
## Example Custom Template | ||
|
||
To create a custom requirements template: | ||
|
||
1. Create a file named `requirements-template.md` in this directory | ||
2. Add your custom structure, for example: | ||
|
||
```markdown | ||
# Requirements Document | ||
|
||
## Executive Summary | ||
[Your custom section] | ||
|
||
## Business Requirements | ||
[Your custom structure] | ||
|
||
## Technical Requirements | ||
[Your custom fields] | ||
|
||
## Custom Sections | ||
[Add any sections specific to your workflow] | ||
``` | ||
|
||
## Template Variables | ||
|
||
Templates can include placeholders that will be replaced when documents are created: | ||
- `{{projectName}}` - The name of your project | ||
- `{{featureName}}` - The name of the feature being specified | ||
- `{{date}}` - The current date | ||
- `{{author}}` - The document author | ||
|
||
## Best Practices | ||
|
||
1. **Start from defaults**: Copy a default template from `../templates/` as a starting point | ||
2. **Keep structure consistent**: Maintain similar section headers for tool compatibility | ||
3. **Document changes**: Add comments explaining why sections were added/modified | ||
4. **Version control**: Track your custom templates in version control | ||
5. **Test thoroughly**: Ensure custom templates work with the spec workflow tools | ||
|
||
## Notes | ||
|
||
- Custom templates are project-specific and not included in the package distribution | ||
- The `templates/` directory contains the default templates which are updated with each version | ||
- Your custom templates in this directory are preserved during updates | ||
- If a custom template has errors, the system will fall back to the default template |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.