72 lines
2.0 KiB
Python
72 lines
2.0 KiB
Python
|
|
# Corrigir o erro e criar o guia
|
|
|
|
template_guide = {
|
|
"metadata": {
|
|
"nome": "Template SteelBook Databook",
|
|
"versao": "1.0",
|
|
"base": "DB-B97-01 (SAIPEM)",
|
|
"tipo": "Vendor Databook Técnico"
|
|
},
|
|
|
|
"componentes": {
|
|
"1_capa_frontal": {
|
|
"nome": "Capa Frontal",
|
|
"campos_editaveis": [
|
|
"logo_cliente", "titulo_projeto", "subtitulo", "numero_documento",
|
|
"numero_contrato", "data_emissao", "logo_fornecedor"
|
|
]
|
|
},
|
|
|
|
"2_indice_geral": {
|
|
"nome": "Índice Geral",
|
|
"campos_editaveis": ["estrutura_secoes", "bilingue"]
|
|
},
|
|
|
|
"3_divisoras_secao": {
|
|
"nome": "Capas Divisoras",
|
|
"campos_editaveis": ["numero_secao", "titulo", "estilo"]
|
|
},
|
|
|
|
"4_cabecalho_rodape": {
|
|
"nome": "Headers e Footers",
|
|
"campos_editaveis": ["projeto", "documento", "pagina", "revisao"]
|
|
}
|
|
},
|
|
|
|
"workflow_uso": [
|
|
"1. Acessar 'Gestão de Templates' no SteelBook",
|
|
"2. Criar novo template ou editar existente",
|
|
"3. Customizar cores, logos e estrutura",
|
|
"4. Salvar template com nome descritivo",
|
|
"5. Ao criar Databook, selecionar template",
|
|
"6. Sistema gera estrutura automaticamente"
|
|
]
|
|
}
|
|
|
|
import json
|
|
|
|
json_output = json.dumps(template_guide, indent=2, ensure_ascii=False)
|
|
|
|
print("=" * 80)
|
|
print("GUIA DE INTEGRAÇÃO - TEMPLATE DATABOOK STEELBOOK")
|
|
print("=" * 80)
|
|
|
|
print("\n📋 COMPONENTES DO TEMPLATE:")
|
|
print("-" * 80)
|
|
for key, comp in template_guide["componentes"].items():
|
|
print(f"\n{comp['nome']}")
|
|
print(f" Campos editáveis: {', '.join(comp['campos_editaveis'])}")
|
|
|
|
print("\n\n📝 WORKFLOW DE USO:")
|
|
print("-" * 80)
|
|
for step in template_guide['workflow_uso']:
|
|
print(f" {step}")
|
|
|
|
# Salvar arquivo
|
|
with open('template_integration_guide.json', 'w', encoding='utf-8') as f:
|
|
f.write(json_output)
|
|
|
|
print("\n\n✅ Arquivo JSON criado com sucesso!")
|
|
print("\n" + "=" * 80)
|