Repository navigation
Expand file tree
/
Copy pathupdate_docs.js
More file actions
57 lines (40 loc) · 2.6 KB
/
Copy pathupdate_docs.js
File metadata and controls
57 lines (40 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const fs = require('fs');
const path = require('path');
// 1. team-collaboration.md
const collabPath = path.join(__dirname, 'content_strategy', 'feature_pages', 'team-collaboration.md');
let collab = fs.readFileSync(collabPath, 'utf8');
collab = collab.replace(/3\.\s*\*\*Mention Colleagues:\*\* Use @mentions to grab someone's attention in a task comment\.\n?/gi, '');
collab = collab.replace(/4\.\s*\*\*Share Updates:\*\*/gi, '3. **Share Updates:**');
collab = collab.replace(/## FAQs[\s\S]*?(?=## |\Z)/gi, '');
fs.writeFileSync(collabPath, collab, 'utf8');
// 2. permissions.md
const permPath = path.join(__dirname, 'content_strategy', 'help_center', 'permissions.md');
let perm = fs.readFileSync(permPath, 'utf8');
perm = perm.replace(/\*\s*\*\*Guest:\*\* External user with limited access to specific projects only\.\n?/gi, '');
perm = perm.replace(/ Project Owners can adjust project permissions from the Project Share menu\./gi, '');
const newPerms = `## Project Permissions
Within a project, you can set access levels:
* **Org View:** Projects visible to the entire organization, promoting transparency.
* **My View:** Private projects visible only to you, perfect for personal task management.
* **Org View + My View:** A hybrid approach allowing specific teams to collaborate privately while keeping other parts of the workspace open.`;
perm = perm.replace(/## Project Permissions[\s\S]*?(?=## )/gi, newPerms + '\n\n');
fs.writeFileSync(permPath, perm, 'utf8');
// 3. teams.md
const teamsPath = path.join(__dirname, 'content_strategy', 'help_center', 'teams.md');
const newTeams = `# Managing Teams
In TaskWhite, teams are managed dynamically through the use of tags, eliminating the need for complex, rigid team settings pages. This flat, tag-based structure keeps your workspace agile.
## Organizing by Tags
Instead of creating rigid team structures, simply use tags to group tasks.
1. Create tags for your departments (e.g., "Marketing", "Engineering", "Design").
2. Assign these tags to relevant tasks.
3. Filter your views by these tags to instantly see everything a specific team is working on.
## Benefits of Virtual Teams
* **Flexibility:** A task can belong to multiple teams simply by adding multiple tags (e.g., Marketing and Design).
* **Zero Maintenance:** No need to manage user lists, team admins, or dedicated team settings.
* **Transparency:** Anyone can filter by a team's tag to see cross-functional progress.
## Related Articles
* [Understanding Permissions](/help/permissions)
* [Project Basics](/help/projects)
`;
fs.writeFileSync(teamsPath, newTeams, 'utf8');
console.log('All changes applied.');