docs: function renderState(env, stateDir, nav, componentData, state) {
      const statePath = Path.join(stateDir, 'index.html');
  
      const raw = env.render('component-raw.html', {
          navigation: nav,
          component: componentData,
          state: state,
          config: config,
          tokens: getTokens(),
      });
  
      mkdirp.sync(stateDir);
      fs.writeFileSync(statePath, raw, 'utf-8');
  }