code: def write(self):
          
          if not os.path.isdir(self._dirs['source_dir']):
              os.mkdir(self._dirs['source_dir'])
  
          fout = codecs.open(self._dirs['source_filename'], 'w', encoding="utf-8", errors="xmlcharrefreplace")
          fout.write(self._config_to_text())
          if self._content:
              fout.write('\n')
              fout.write(self._content)
              fout.write('\n')
          fout.close()
docs: Write the s2 page to the corresponding source file.
  
          It always writes the (serialized) config first, and then the
          content (normally markdown). The destination file is in the
          source_dir of the site.