docs: split Structure into six linked department pages
This commit is contained in:
1 parent
88a4375776
commit
5c5809d349
13 files changed
+254
-89
No files matched your search
@@ -43,7 +43,7 @@ test('three independent section menus and Structure first', () => {
|
||||
for (const section of ['Organization', 'Strategy', 'Contribution']) assert(config.includes(`label: '${section}'`));
|
||||
assert(!config.includes("label: 'Documentation'"));
|
||||
assert(!config.includes("label: 'Maintainer guide'"));
|
||||
assert(read('sidebars/organization.ts').includes("organizationSidebar: ['structure', 'collaboration', 'sdlc']"));
|
||||
assert(read('sidebars/organization.ts').includes("link: {type: 'doc', id: 'structure'}"));
|
||||
for (const section of ['organization','strategy','contribution']) assert(config.includes(`id: '${section}'`));
|
||||
});
|
||||
test('Archify is pinned, licensed and rebuilt, not a remote embed', () => {
|
||||
@@ -83,7 +83,7 @@ test('Product owns two teams and Technology owns five separate teams', () => {
|
||||
for (const [dept, count, heading, next] of [['product',2,'Product','Technology'],['technology',5,'Technology','Operations']]) {
|
||||
const teams = spec.components.filter(n => n.id.startsWith(`${dept}-team-`));
|
||||
assert.equal(teams.length, count);
|
||||
const section = page.split(`### ${heading}\n`)[1].split(`### ${next}\n`)[0];
|
||||
const section = read(`docs/organization/structure/${dept}.mdx`);
|
||||
const rows = section.split('\n').filter(l => l.startsWith('| ')).slice(2);
|
||||
assert.equal(rows.length, count);
|
||||
for (const team of teams) {
|
||||
@@ -112,7 +112,7 @@ test('departments share one row and each has delivery teams below it', () => {
|
||||
assert.equal(edge.fromSide, 'bottom');
|
||||
assert.equal(spec.connections.find(e => e.from === 'management' && e.to === id).toSide, 'top');
|
||||
assert.deepEqual(spec.connections.filter(e => e.to === team.id).map(e => e.from), [id]);
|
||||
assert(page.includes(team.label));
|
||||
assert(read(`docs/organization/structure/${({finance:'finance-accounting',people:'hr-administration'})[id] || id}.mdx`).includes(team.label));
|
||||
}
|
||||
}
|
||||
for (const [i, a] of spec.components.entries()) for (const b of spec.components.slice(i + 1)) {
|
||||
|
||||
Reference in new issue
Block a user